class

CP::Constraint::SimpleMotor

Inherits CP::Constraint / Reference / Object

Keeps the relative angular velocity of a pair of bodies constant.

Constructors

new(a : Body, b : Body, rate : Number)
Source

Instance methods

rate

The desired relative angular velocity of the motor.

You will usually want to set a force (torque) maximum for motors as otherwise they will be able to apply a nearly infinite torque to keep the bodies moving.

Source
rate=(rate : Number)
Source