Box collision object.
More...
#include <box-collider.hpp>
Box collision object.
Definition at line 31 of file box-collider.hpp.
◆ box_type
◆ box_collider() [1/3]
constexpr physics::box_collider::box_collider |
( |
const box_type & |
box | ) |
|
|
inlineexplicitconstexprnoexcept |
Constructs a box collider from a box.
- Parameters
-
Definition at line 47 of file box-collider.hpp.
◆ box_collider() [2/3]
Constructs a box collider.
- Parameters
-
min | Minimum extent of the box, in object space. |
max | Maximum extent of the box, in object space. |
Definition at line 58 of file box-collider.hpp.
◆ box_collider() [3/3]
constexpr physics::box_collider::box_collider |
( |
| ) |
|
|
constexprdefaultnoexcept |
Constructs a box collider.
- Parameters
-
min | Minimum extent of the box, in object space. |
max | Maximum extent of the box, in object space. |
◆ get_box()
constexpr const box_type& physics::box_collider::get_box |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_max()
constexpr const math::fvec3& physics::box_collider::get_max |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns the maximum extent of the box, in object space.
Definition at line 107 of file box-collider.hpp.
◆ get_min()
constexpr const math::fvec3& physics::box_collider::get_min |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns the minimum extent of the box, in object space.
Definition at line 101 of file box-collider.hpp.
◆ set_box()
constexpr void physics::box_collider::set_box |
( |
const box_type & |
box | ) |
|
|
inlineconstexprnoexcept |
◆ set_max()
constexpr void physics::box_collider::set_max |
( |
const math::fvec3 & |
max | ) |
|
|
inlineconstexprnoexcept |
Sets the maximum extent of the box.
- Parameters
-
max | Maximum extent of the box, in object space. |
Definition at line 89 of file box-collider.hpp.
◆ set_min()
constexpr void physics::box_collider::set_min |
( |
const math::fvec3 & |
min | ) |
|
|
inlineconstexprnoexcept |
Sets the minimum extent of the box.
- Parameters
-
min | Minimum extent of the box, in object space. |
Definition at line 79 of file box-collider.hpp.
◆ type()
|
inlineconstexproverridevirtualnoexcept |
The documentation for this class was generated from the following file: