PhysicsEngineCreateBallSocketJoint(PhysicsRigidBody, Vector3) Method |
Creates a ball and socket (spherical) joint in the physics world that constrains the
specified rigid body to maintain a fixed distance from the specified world-space anchor
position.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic PhysicsBallSocketJoint CreateBallSocketJoint(
PhysicsRigidBody rigidBody,
Vector3 anchor
)
Parameters
- rigidBody PhysicsRigidBody
- The rigid body to constrain.
- anchor Vector3
- The world-space position for the pivot point.
Return Value
PhysicsBallSocketJointThe created ball and socket joint.
See Also