ShakeOptions
Configure shake frequency, damping, random seed and mode. Default uses PerlinNoise.
public struct ShakeOptions : IMotionOptions, IEquatable<ShakeOptions>VibrationMotion.cs · L21Members
Frequency
Oscillation frequency setting.
public int Frequency;DampingRatio
Damping setting controlling the decay of amplitude.
public float DampingRatio;RandomSeed
Seed used for pseudorandom generation.
public uint RandomSeed;ShakeMode
Noise mode selected for this shake.
public ShakeMode ShakeMode;Default
Return frequency 10, damping ratio 1 and PerlinNoise mode.
public static ShakeOptions Default { get; }Equals
Compare for value equality.
public readonly bool Equals(ShakeOptions other)Parameters and return value
otherShakeOptionsOperand for the equality comparison.- Returns
bool
public override readonly bool Equals(object obj)Parameters and return value
objobjectOperand for the equality comparison.- Returns
bool
GetHashCode
Return the hash code used with value equality.
public override readonly int GetHashCode()Return value
- Returns
int
MeatMotion