Description
Requires that a swing+twist or SLERP "drive" has been configured in attachChild. Sets the joints target orientation (relative to the joint's own orientation). The drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired orientation.
Syntax
Syntax 1
joint setJointDriveOrientation [angle, axis]
Parameters:
joint: Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulatedangle: Number - The angle (in radians to rotate around axis), clockwiseaxis: Vector3D - The vector around which to rotate
Returns: Nothing
Syntax 2
joint setJointDriveOrientation [vectorDir, vectorUp]
Parameters:
joint: Object or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulatedvectorDir: Vector3D - vectorDirvectorUp: Vector3D - vectorUp
Returns: Nothing
Examples
Example 1
Example 2
Example 3
Example 4
Example 5
See also
attachChild · setJointDrivePosition · setJointDriveLinearVelocity · setJointDriveAngularVelocity