Table of Contents

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

bodyA Body

The first body.

bodyB Body

The second body.

worldAnchor Vector3

The shared point, in world space.

worldAxis Vector3?

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.