Box3dCollisionResult

The result of aabbOverlap(): whether two axis-aligned boxes truly overlap, and if so, the contact normal (along whichever axis has the least overlap, away from box B and toward box A) and the penetration depth along that axis.

Properties

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

Constructor

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

Parameters

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