TruWorlds

Motor

Inherits: Instance

Motor connects two PhysicsInstance instances and drives relative angular velocity between them around the axis defined by a face on the primary body.

Properties

Face PartSide

The face on TargetA that defines the rotation axis normal.

MaxTorque float

The maximum torque the motor can apply per second.

TargetA Instance?

The primary PhysicsInstance the motor is mounted on. The rotation axis is derived from this body's face.

TargetB Instance?

The secondary PhysicsInstance that the motor rotates relative to TargetA.

TargetVelocity float

The target relative angular velocity in radians per second around the face axis. Positive values rotate counter-clockwise when looking along the outward face normal.