Antkeeper
0.0.1
|
Abstract base class for collision objects. More...
#include <collider.hpp>
Public Member Functions | |
virtual constexpr collider_type | type () const noexcept=0 |
Returns the collider type. More... | |
constexpr void | set_layer_mask (std::uint32_t mask) noexcept |
Sets the layer mask of the collider. More... | |
void | set_material (std::shared_ptr< collider_material > material) noexcept |
Sets the collider material. More... | |
constexpr std::uint32_t | get_layer_mask () const noexcept |
Returns the layer mask of the collider. More... | |
constexpr const std::shared_ptr< collider_material > & | get_material () const noexcept |
Returns the collider material. More... | |
Abstract base class for collision objects.
Definition at line 33 of file collider.hpp.
|
inlineconstexprnoexcept |
Returns the layer mask of the collider.
Definition at line 60 of file collider.hpp.
|
inlineconstexprnoexcept |
Returns the collider material.
Definition at line 66 of file collider.hpp.
|
inlineconstexprnoexcept |
Sets the layer mask of the collider.
mask | 32-bit layer mask in which each set bit represents a layer with which the collider can interact. |
Definition at line 46 of file collider.hpp.
|
inlinenoexcept |
Sets the collider material.
Definition at line 54 of file collider.hpp.
|
constexprpure virtualnoexcept |
Returns the collider type.
Implemented in physics::sphere_collider, physics::plane_collider, physics::mesh_collider, physics::capsule_collider, and physics::box_collider.