Class: Joint
Lua
C++
Edit

Joint::SetTargetRotation

This method sets the target rotation of a motorized hinge or kinematic joint.

Syntax

Parameter Description
rotation, (pitch, yaw, roll) target rotation to set

Remarks

A hinge joint accepts a single rotation value. A kinematic joint requires a quaternion or Euler rotation.

You must call Joint::SetMaxTorque and specify a non-zero torque before this command will have any effect.

Copyright © 2024 Ultra Software.
All rights reserved.