API

Interface SpringJointData

Joint data from a spring joint

interface SpringJointData {
    collision?: boolean;
    connectedAxis?: Vector3;
    connectedPivot?: Vector3;
    damping: number;
    forceApplicationCallback: () => void;
    length: number;
    mainAxis?: Vector3;
    mainPivot?: Vector3;
    nativeParams?: any;
    stiffness: number;
}

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

damping: number

Damping of the spring

forceApplicationCallback: () => void

this callback will be called when applying the force to the impostors.

length: number

Length of the spring

mainAxis?: Vector3

The main axis of the joint

mainPivot?: Vector3

The main pivot of the joint

nativeParams?: any

Native Oimo/Cannon/Energy data

stiffness: number

Stiffness of the spring