Method | Description | |
---|---|---|
LinearFalloff ( |
Delegate to apply a linear falloff to the vibration frequency
|
|
LinearRamp ( |
Delegate to apply a linear ramp to the vibration frequency
|
|
Vibration ( Motor targetMotor, float frequency, float duration ) : System |
Initializes a new instance of the Vibration class.
|
|
Vibration ( Motor targetMotor, float frequency, float duration, float>.Func |
Initializes a new instance of the Vibration class.
|
Method | Description | |
---|---|---|
Update ( long dt ) : void |
Updates the vibration.
|
public static LinearFalloff ( |
||
vibration | The vibration. | |
return | float |
public static LinearRamp ( |
||
vibration | The vibration. | |
return | float |
public Vibration ( Motor targetMotor, float frequency, float duration ) : System | ||
targetMotor | Motor | The target motor |
frequency | float | The motor frequency. |
duration | float | The duration of the vibration |
return | System |
public Vibration ( Motor targetMotor, float frequency, float duration, float>.Func |
||
targetMotor | Motor | The target motor |
frequency | float | The motor frequency. |
duration | float | The duration of the vibration |
modifier | float>.Func | Frequency modifier delegate |
return | System |