logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class DecayingJitterMotionTests

    EditMode tests for Play(float, float, float, bool, Func<float>, Func<Vector3>): with an injected fixed delta-time and a fixed direction sequence, the exact sample sequence the inline shake loop in ScreenShakeChannel/UiScreenShakeChannel would produce is fully deterministic and assertable without a coroutine or a Unity frame loop.

    Inheritance
    object
    DecayingJitterMotionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Feedback.Tests.Editor
    Assembly: Serenity.Feedback.Tests.Editor.dll
    Syntax
    public class DecayingJitterMotionTests

    Constructors

    DecayingJitterMotionTests()

    Declaration
    public DecayingJitterMotionTests()

    Methods

    Play_DirectionRerollCadence_Should_OnlyRerollAfterSecondsPerDirectionElapsed()

    Declaration
    public void Play_DirectionRerollCadence_Should_OnlyRerollAfterSecondsPerDirectionElapsed()

    Play_FiniteDuration_Should_DecayMagnitudeLinearlyTowardZero()

    Declaration
    public void Play_FiniteDuration_Should_DecayMagnitudeLinearlyTowardZero()

    Play_FiniteDuration_Should_YieldOneSamplePerStep_AndRerollDirectionEveryStep()

    Declaration
    public void Play_FiniteDuration_Should_YieldOneSamplePerStep_AndRerollDirectionEveryStep()

    Play_Persistent_Should_SustainFullAmplitudeIndefinitely()

    Declaration
    public void Play_Persistent_Should_SustainFullAmplitudeIndefinitely()
    In this article
    © 2026 Serenity. All Rights Reserved