Interface PhysicsHitData
interface PhysicsHitData {
contactPoint: Vector3;
distanceFromOrigin: number;
force: Vector3;
instanceIndex?: number;
}
contactPoint: Vector3;
distanceFromOrigin: number;
force: Vector3;
instanceIndex?: number;
}
Properties
contact Point
The contact point
distance From Origin
distanceFromOrigin: number
The distance from the origin to the contact point
force
The force applied at the contact point
Optionalinstance Index
instanceIndex?: number
For an instanced physics body (mesh with thin instances), the index of the thin instance the hit applies to
Interface for a physics hit data
See
https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine#further-functionality-of-the-impostor-class