jakke-graphics-ts
    Preparing search index...

    Namespace CollisionUtils

    Utility namespace for collision detection algorithms in 2D and 3D space.

    Provides functions for detecting collisions between bounding boxes using the Separating Axis Theorem (SAT), as well as intersection calculations between lines and triangles. The utilities support both 2D and 3D oriented bounding boxes, and offer detailed results including error handling and projection sections.

    • All collision detection functions handle floating-point imprecision using configurable tolerances.
    • Functions return detailed results including collision status, error information, and projection sections.
    • Includes methods for both edge and surface intersection calculations between lines and triangles.
    • Designed for use in graphics, physics, and geometry processing applications.

    Functions

    getCollisionLineWithTriangleEdges
    getCollisionLineWithTriangleSurface
    hasBoundingBoxCollision2d
    hasBoundingBoxCollision3d