Click or drag to resize
JointXSetJointTargetRotationUsingLocalRotation Method (ConfigurableJoint, Quaternion, Quaternion)
Transform a supplied desired localRotation into the joint's frame and apply the result as ConfigurableJoint.targetRotation on the joint.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static void SetJointTargetRotationUsingLocalRotation(
	this ConfigurableJoint joint,
	Quaternion bindPose,
	Quaternion targetLocalRotation
)

Parameters

joint
Type: ConfigurableJoint
Joint.
bindPose
Type: Quaternion
A Quaternion representing orientation of the joint at MonoBehaviour.Awake() time or when joint was added.
targetLocalRotation
Type: Quaternion
A Quaternion representing the desired localRotation for the transform with the joint attached.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConfigurableJoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also