SetTargetAngle
This function sets the angle a joint motor will move towards. The joint motor must be enabled with the EnableMotor command for this to have any effect.
Syntax
- void SetTargetAngle(const float angle)
Parameters
- angle: For hinges, this is the angle the joint will rotate to match. For sliders, this is the position the joint will move to match.