Interface SpringJointData
interface SpringJointData {
collision?: boolean;
connectedAxis?: Vector3;
connectedPivot?: Vector3;
damping: number;
forceApplicationCallback: () => void;
length: number;
mainAxis?: Vector3;
mainPivot?: Vector3;
nativeParams?: any;
stiffness: number;
}
collision?: boolean;
connectedAxis?: Vector3;
connectedPivot?: Vector3;
damping: number;
forceApplicationCallback: () => void;
length: number;
mainAxis?: Vector3;
mainPivot?: Vector3;
nativeParams?: any;
stiffness: number;
}
Hierarchy (View Summary)
- PhysicsJointData
- SpringJointData
Properties
Optionalcollision
collision?: boolean
The collision of the joint
Optionalconnected Axis
The connected axis of the joint
Optionalconnected Pivot
The connected pivot of the joint
damping
damping: number
Damping of the spring
force Application Callback
forceApplicationCallback: () => void
this callback will be called when applying the force to the impostors.
length
length: number
Length of the spring
Optionalmain Axis
The main axis of the joint
Optionalmain Pivot
The main pivot of the joint
Optionalnative Params
nativeParams?: any
Native Oimo/Cannon/Energy data
stiffness
stiffness: number
Stiffness of the spring
Joint data from a spring joint
See
https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine