Toast Engine
Loading...
Searching...
No Matches
physics::AABBTree Class Reference

Public Member Functions

 AABBTree (size_t expected_shapes=0)
auto insert (ShapeID shape, const AABB &bounds) -> TreeNodeID
void remove (TreeNodeID leaf_id)
auto updateLeaf (TreeNodeID leaf_id, const AABB &tight_bounds) -> bool
auto query (const AABB &bounds, ShapeID ignored_shape={}) const -> std::vector< ShapeID >
template<typename Visit>
void raycast (glm::vec3 origin, glm::vec3 inv_dir, float max_distance, Visit &&visit) const
auto debugNodes () const -> std::vector< AABBTreeDebugNode >
auto size () const -> size_t
auto validate () const -> bool

The documentation for this class was generated from the following files:
  • engine/src/toast/physics/aabb_tree.hpp
  • engine/src/toast/physics/aabb_tree.cpp