Click or drag to resize

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.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public 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

PhysicsHingeJoint
The created hinge joint.
See Also