20 #ifndef ANTKEEPER_PHYSICS_BOX_COLLIDER_HPP
21 #define ANTKEEPER_PHYSICS_BOX_COLLIDER_HPP
constexpr void set_box(const box_type &box) noexcept
Sets the collider's box.
constexpr const box_type & get_box() const noexcept
Returns the box shape.
constexpr box_collider(const box_type &box) noexcept
Constructs a box collider from a box.
geom::box< float > box_type
Box type.
constexpr const math::fvec3 & get_max() const noexcept
Returns the maximum extent of the box, in object space.
constexpr void set_max(const math::fvec3 &max) noexcept
Sets the maximum extent of the box.
constexpr const math::fvec3 & get_min() const noexcept
Returns the minimum extent of the box, in object space.
constexpr box_collider() noexcept=default
Constructs a box collider.
constexpr void set_min(const math::fvec3 &min) noexcept
Sets the minimum extent of the box.
constexpr box_collider(const math::fvec3 &min, const math::fvec3 &max) noexcept
Constructs a box collider.
constexpr collider_type type() const noexcept override
Returns the collider type.
Abstract base class for collision objects.
collider_type
Collider types.
n-dimensional axis-aligned rectangle.
vector_type min
Minimum extent of the hyperrectangle.
vector_type max
Maximum extent of the hyperrectangle.