MeatMotion

ShakeOptions

Configure shake frequency, damping, random seed and mode. Default uses PerlinNoise.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public struct ShakeOptions : IMotionOptions, IEquatable<ShakeOptions>
VibrationMotion.cs · L21

Members

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
other
ShakeOptions Operand for the equality comparison.
Returns
bool
public override readonly bool Equals(object obj)
Parameters and return value
obj
object Operand for the equality comparison.
Returns
bool

GetHashCode

Return the hash code used with value equality.

public override readonly int GetHashCode()
Return value
Returns
int