logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct JitterSample

    One sampled step of a decaying-jitter shake: a direction and the magnitude to apply along it.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Feedback.Infrastructure.Channels
    Assembly: Serenity.UnityFeedback.Infrastructure.dll
    Syntax
    public readonly struct JitterSample

    Constructors

    JitterSample(Vector3, float)

    Constructs a jitter sample.

    Declaration
    public JitterSample(Vector3 direction, float magnitude)
    Parameters
    Type Name Description
    Vector3 direction
    float magnitude

    Properties

    Direction

    The (already normalized) direction to offset along for this sample.

    Declaration
    public Vector3 Direction { get; }
    Property Value
    Type Description
    Vector3

    Magnitude

    The magnitude to apply along Direction for this sample.

    Declaration
    public float Magnitude { get; }
    Property Value
    Type Description
    float
    In this article
    © 2026 Serenity. All Rights Reserved