20 #ifndef ANTKEEPER_PHYSICS_COLLIDER_HPP
21 #define ANTKEEPER_PHYSICS_COLLIDER_HPP
54 inline void set_material(std::shared_ptr<collider_material> material) noexcept
56 m_material = material;
66 [[nodiscard]]
inline constexpr
const std::shared_ptr<collider_material>&
get_material() const noexcept
73 std::uint32_t m_layer_mask{1};
76 std::shared_ptr<collider_material> m_material;
Abstract base class for collision objects.
virtual constexpr collider_type type() const noexcept=0
Returns the collider type.
constexpr void set_layer_mask(std::uint32_t mask) noexcept
Sets the layer mask of the collider.
void set_material(std::shared_ptr< collider_material > material) noexcept
Sets the collider material.
constexpr std::uint32_t get_layer_mask() const noexcept
Returns the layer mask of the collider.
constexpr const std::shared_ptr< collider_material > & get_material() const noexcept
Returns the collider material.
collider_type
Collider types.