Click or drag to resize

PhysicsEngineCreateBallSocketJoint(PhysicsRigidBody, PhysicsRigidBody, Vector3) Method

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: 19.00.00
Syntax
C#
public PhysicsBallSocketJoint CreateBallSocketJoint(
	PhysicsRigidBody rigidBody1,
	PhysicsRigidBody rigidBody2,
	Vector3 anchor
)

Parameters

rigidBody1  PhysicsRigidBody
The first rigid body to constrain.
rigidBody2  PhysicsRigidBody
The second rigid body to constrain.
anchor  Vector3
The world-space position for the pivot point.

Return Value

PhysicsBallSocketJoint
The created ball and socket joint.
See Also