API

Interface DistanceJointData

Joint data for a Distance-Joint

interface DistanceJointData {
    collision?: boolean;
    connectedAxis?: Vector3;
    connectedPivot?: Vector3;
    mainAxis?: Vector3;
    mainPivot?: Vector3;
    maxDistance: number;
    nativeParams?: any;
}

Hierarchy (View Summary)

Index
collision?: boolean

The collision of the joint

connectedAxis?: Vector3

The connected axis of the joint

connectedPivot?: Vector3

The connected pivot of the joint

mainAxis?: Vector3

The main axis of the joint

mainPivot?: Vector3

The main pivot of the joint

maxDistance: number

Max distance the 2 joint objects can be apart

nativeParams?: any

Native Oimo/Cannon/Energy data