R3d.HingeJoint

From GiderosMobile
Revision as of 07:54, 23 January 2020 by MoKaLux (talk | contribs) (Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Joint<br/> === Description === The HingeJoint class describes a hinge joint (or revolute joint) between two r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.10
Class: R3d.Joint

Description

The HingeJoint class describes a hinge joint (or revolute joint) between two rigid bodies.

The hinge joint only allows rotation around an anchor point and around a single axis (the hinge axis). This joint can be used to simulate doors or pendulums for instance.

In order to create a hinge joint, you first need to create a HingeJointInfo object with the necessary information. You need to provide the pointers to the two rigid bodies, the coordinates of the anchor point (in world-space) and also the hinge rotation axis (in world-space). The two bodies need to be in a correct position when the joint is created.

r3d.HingeJoint

Parameters

Example