Interface CollisionShape

All Known Implementing Classes:
BoxShape, Polyhedron, SphereShape

public interface CollisionShape
Interface for 3D collision shapes.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    compute AABB (Axis Aligned Bounding Box).
    Gets the support point in a given direction (furthest point in that direction).
  • Method Details

    • getSupportPoint

      Vector<Real> getSupportPoint(Vector<Real> direction)
      Gets the support point in a given direction (furthest point in that direction). Used for GJK and SAT algorithms.
      Parameters:
      direction - the direction vector
      Returns:
      the support point in local coordinates
    • getAABB

      Vector<Real>[] getAABB()
      compute AABB (Axis Aligned Bounding Box).
      Returns:
      array of two Vectors {min, max}