Skip to content

Result Manifold

selimanac edited this page Jan 30, 2025 · 3 revisions

Manifold contains detailed information on how AABBs or rays collide with each other.

  • Manifold generation is a relatively expensive process.
  • This library does not support sweep-based continuous collision detection (CCD) and does not prevent tunneling. You may handle this situation using raycast.
  • If the center of a colliding AABB passes the center of the collided AABB, the offset will be on the opposite side of the collided AABB."

Parameters

  • id - AABB ID
  • contact_point (vector3) - Contact point positions
  • normal (vector3) - Contact point normal
  • depth - Depth of the collision. This is only available for AABB queries. The raycast result is always 0.
  • distance - Distance between the centers of two AABBs. Raycast distance is measured from the ray's start point.
{ 
  contact_point = vmath.vector3(21, 1.5, -48),
  normal = vmath.vector3(0, 0, 1),
  distance = 3.7619814872742,
  id = 1,
  depth = 0
}
Clone this wiki locally