struct HingeJointDrive

Properties of a drive that drives the joint's angular velocity towards a paricular value.

Public

Fields

Speed

float Speed

Target speed of the joint.

ForceLimit

float ForceLimit

Maximum torque the drive is allowed to apply .

GearRatio

float GearRatio

Scales the velocity of the first body, and its response to drive torque is scaled down.

FreeSpin

bool FreeSpin

If the joint is moving faster than the drive's target speed, the drive will try to break.

If you don't want the breaking to happen set this to true.

Operators

operator==

bool operator==(const HingeJointDrive &other) const