Method AngularVelocityMotor
AngularVelocityMotor(float, float, float, float)
Drives bodies to a specified target angular velocity, around one axis.
Declaration
public static Constraint AngularVelocityMotor(float target, float maxImpulseOfMotor = Infinity, float springFrequency = 74341.31, float dampingRatio = 2530.126)
Parameters
Type | Name | Description |
---|---|---|
float | target | The target angular velocity of the motor around Joint's Axis, in rad/s. |
float | maxImpulseOfMotor | The magnitude of the max impulse that a motor constraint can exert in a single step. Must be positive. This is a motor specific usage that does not represent the impulse threshold for event reporting. |
float | springFrequency | The spring frequency used to relax this constraint. |
float | dampingRatio | The damping ratio used to relax this constraint. |
Returns
Type | Description |
---|---|
Constraint | A Constraint. |