Sphere3dCollisionResult

The result of sphereOverlap(): whether two spheres truly overlap in 3D, and if so, the contact normal (points away from centerB, toward centerA) and how far they're currently penetrating along that normal.

Properties

  • overlapping (boolean)
  • normal (BGE.Math.Vector)
  • penetrationDepth (float)

Constructor

new Sphere3dCollisionResult( overlapping: boolean, normal: BGE.Math.Vector, penetrationDepth: float, ): Sphere3dCollisionResult

Parameters

  • overlapping (boolean)
  • normal (BGE.Math.Vector)
  • penetrationDepth (float)