Method BallAndSocket
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
BallAndSocket(Body, Body, Vector3, Vector3?)
Pins two bodies together at a shared world-space point.
public static SphericalJointDefinition BallAndSocket(Body bodyA, Body bodyB, Vector3 worldAnchor, Vector3? worldAxis = null)Parameters
bodyABody-
The first body.
bodyBBody-
The second body.
worldAnchorVector3-
The shared point, in world space.
worldAxisVector3?-
The axis the cone is centred on and the twist measured about, in world space. Defaults to the world up axis when omitted.
Returns
- SphericalJointDefinition
-
The definition.