The motor will apply a force up to a maximum force to achieve the target velocity in degrees per second.
The motor tries to reach JointMotor.targetVelocity angular velocity in degrees per second.
The motor will only be able to reach targetVelocity
, if JointMotor.force is sufficiently large.
If the joint is spinning faster than targetVelocity
the motor will break.
A negative targetVelocity
will make the motor spin in the opposite direction.
The force
is the maximum torque the motor can exert. If it is zero the motor is disabled.
The motor will brake when it is spinning faster than targetVelocity
only, if JointMotor.freeSpin is false.
If freeSpin
is true the motor will not brake.
See Also: useMotor, JointMotor.
no example available in C#
Modifying the motor does not automatically enable the motor.
Enabling the motor overrides the spring, given the spring was enabled. If the motor is again disabled the spring will be restored.