MeatMotion

PunchOptions

Configure punch frequency and damping. Default sets Frequency to 10 and DampingRatio to 1.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public struct PunchOptions : IMotionOptions, IEquatable<PunchOptions>
VibrationMotion.cs · L10

Members

Frequency

Oscillation frequency setting.

public int Frequency;

DampingRatio

Damping setting controlling the decay of amplitude.

public float DampingRatio;

Default

Return settings with frequency 10 and damping ratio 1.

public static PunchOptions Default { get; }

Equals

Compare for value equality.

public readonly bool Equals(PunchOptions other)
Parameters and return value
other
PunchOptions 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