PhysicsEngineCreateHingeJoint(PhysicsRigidBody, Matrix) Method |
Creates a hinge (revolute) joint in the physics world that constrains the specified
rigid body to maintain a fixed distance from the origin of the speicied transform but is
allowed to pivot about the z-axis of the specified transform.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic PhysicsHingeJoint CreateHingeJoint(
PhysicsRigidBody rigidBody,
Matrix transform
)
Parameters
- rigidBody PhysicsRigidBody
- The rigid body to constrain.
- transform Matrix
- The transform for the hinge in world-space, where the local z-axis is the axis of rotation.
Return Value
PhysicsHingeJointThe created hinge joint.
See Also