Differences
This shows you the differences between two versions of the page.
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 |
* ''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. |