Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


hingejoint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
hingejoint [2021/05/01 16:46]
73.95.178.156
hingejoint [2021/05/01 16:46]
73.95.178.156
Line 4: Line 4:
   * ''HingeJoint'' does not constrain the absolute ''rotation'' or ''localRotation'' of the Transform that it is attached to. It constrains the **relative** rotation between its own RigidBody and the Rigidbody in the ''ConnectedBody'' field.   * ''HingeJoint'' does not constrain the absolute ''rotation'' or ''localRotation'' of the Transform that it is attached to. It constrains the **relative** rotation between its own RigidBody and the Rigidbody in the ''ConnectedBody'' field.
  
-  * ''HingeJoint.angle'' and ''HingJoint.axis'' do not represent the rotation of the Transform that it is attached to. Ex: ''Quaternion.AngleAxis(hingeJoint.angle, hingeJoint.axis)'' does not equal ''hingeJoint.transform.rotation'' or ''hingeJoint.transform.localRotation''.+  * ''HingeJoint.angle'' and ''HingJoint.axis'' do not represent the rotation of the Transform that it is attached to. Ex: ''Quaternion.AngleAxis(hinge.angle, hinge.axis)'' is not equivalent to''hinge.transform.rotation'' or ''hinge.transform.localRotation''.
  
 These two misconceptions, taken together, can make a ''HingeJoint'' behave quite differently from what you might expect.  These two misconceptions, taken together, can make a ''HingeJoint'' behave quite differently from what you might expect. 
hingejoint.txt ยท Last modified: 2021/05/01 16:59 by 73.95.178.156