Click or drag to resize

PhysicsEngineCreateBallSocketJoint Method (PhysicsRigidBody, PhysicsRigidBody, Vector3)

Creates a ball and socket (spherical) joint in the physics world that constrains the two specified rigid bodies to maintain a fixed distance from the specified world-space anchor position.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public PhysicsBallSocketJoint CreateBallSocketJoint(
	PhysicsRigidBody rigidBody1,
	PhysicsRigidBody rigidBody2,
	Vector3 anchor
)

Parameters

rigidBody1
Type: Demo3D.VisualsPhysicsRigidBody
The first rigid body to constrain.
rigidBody2
Type: Demo3D.VisualsPhysicsRigidBody
The second rigid body to constrain.
anchor
Type: Microsoft.DirectXVector3
The world-space position for the pivot point.

Return Value

Type: PhysicsBallSocketJoint
The created ball and socket joint.
See Also