Click or drag to resize

PhysicsEngineCreateFixedJoint Method (PhysicsRigidBody, PhysicsRigidBody)

Creates a fixed joint in the physics world that constrains the two specified rigid bodies to maintain their current positions and orientations relative to each other.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public PhysicsFixedJoint CreateFixedJoint(
	PhysicsRigidBody rigidBody1,
	PhysicsRigidBody rigidBody2
)

Parameters

rigidBody1
Type: Demo3D.VisualsPhysicsRigidBody
The first rigid body to constrain.
rigidBody2
Type: Demo3D.VisualsPhysicsRigidBody
The second rigid body to constrain.

Return Value

Type: PhysicsFixedJoint
The created fixed joint.
Remarks
It is advisable to use a compound geometric collision shape instead of a fixed joint where possible.
See Also