Click or drag to resize

PhysicsEngineCreateHingeJoint Method (PhysicsRigidBody, PhysicsRigidBody, Matrix)

Creates a hinge (revolute) joint in the physics world that constrains the two specified rigid bodies to maintain a fixed distance from the origin of the specified transform but are allowed to pivot about the z-axis of the specified transform.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public PhysicsHingeJoint CreateHingeJoint(
	PhysicsRigidBody rigidBody1,
	PhysicsRigidBody rigidBody2,
	Matrix transform
)

Parameters

rigidBody1
Type: Demo3D.VisualsPhysicsRigidBody
The first rigid body to constrain.
rigidBody2
Type: Demo3D.VisualsPhysicsRigidBody
The second rigid body to constrain.
transform
Type: Microsoft.DirectXMatrix
The transform for the hinge in world-space, where the local z-axis is the axis of rotation.

Return Value

Type: PhysicsHingeJoint
The created hinge joint.
See Also