Struct JitterSample
One sampled step of a decaying-jitter shake: a direction and the magnitude to apply along it.
Inherited Members
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 |