Antkeeper
0.0.1
|
Capsule collision object. More...
#include <capsule-collider.hpp>
Public Types | |
using | capsule_type = geom::capsule< float > |
Capule type. More... | |
Public Member Functions | |
constexpr collider_type | type () const noexcept override |
Returns the collider type. More... | |
constexpr | capsule_collider (const capsule_type &capsule) noexcept |
Constructs a capsule collider from a capsule. More... | |
constexpr void | set_capsule (const capsule_type &capsule) noexcept |
Sets the collider's capsule. More... | |
constexpr void | set_segment (const capsule_type::segment_type &segment) noexcept |
Sets the segment of the capsule. More... | |
constexpr void | set_radius (float radius) noexcept |
Sets the radius of the capsule hemispheres. More... | |
constexpr const capsule_type & | get_capsule () const noexcept |
Returns the capsule shape. More... | |
constexpr const capsule_type::segment_type & | get_segment () const noexcept |
Returns the segment of the capsule, in object space. More... | |
constexpr float | get_radius () const noexcept |
Returns the radius of the capsule hemispheres. More... | |
constexpr | capsule_collider (const capsule_type::segment_type &segment, float radius) noexcept |
Constructs a capsule collider. More... | |
constexpr | capsule_collider () noexcept=default |
Constructs a capsule collider. 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... | |
Capsule collision object.
Definition at line 31 of file capsule-collider.hpp.
using physics::capsule_collider::capsule_type = geom::capsule<float> |
Capule type.
Definition at line 35 of file capsule-collider.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a capsule collider from a capsule.
capsule | Capsule shape. |
Definition at line 47 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Constructs a capsule collider.
segment | Capsule line segment. |
radius | Capsule hemisphere radius. |
Definition at line 58 of file capsule-collider.hpp.
|
constexprdefaultnoexcept |
Constructs a capsule collider.
segment | Capsule line segment. |
radius | Capsule hemisphere radius. |
|
inlineconstexprnoexcept |
Returns the capsule shape.
Definition at line 95 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Returns the radius of the capsule hemispheres.
Definition at line 107 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Returns the segment of the capsule, in object space.
Definition at line 101 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Sets the collider's capsule.
capsule | Capsule shape. |
Definition at line 69 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Sets the radius of the capsule hemispheres.
radius | Capsule hemisphere radius. |
Definition at line 89 of file capsule-collider.hpp.
|
inlineconstexprnoexcept |
Sets the segment of the capsule.
segment | Capsule segment, in object space. |
Definition at line 79 of file capsule-collider.hpp.
|
inlineconstexproverridevirtualnoexcept |
Returns the collider type.
Implements physics::collider.
Definition at line 37 of file capsule-collider.hpp.