Antkeeper
0.0.1
|
Plane collision object. More...
#include <plane-collider.hpp>
Public Types | |
using | plane_type = geom::plane< float > |
Plane type. More... | |
Public Member Functions | |
constexpr collider_type | type () const noexcept override |
Returns the collider type. More... | |
constexpr | plane_collider (const plane_type &plane) noexcept |
Constructs a plane collider from a plane. More... | |
constexpr | plane_collider (const math::fvec3 &normal, const math::fvec3 &offset) noexcept |
Constructs a plane collider from a normal and offset. More... | |
constexpr void | set_plane (const plane_type &plane) noexcept |
Sets the collider's plane. More... | |
constexpr void | set_normal (const math::fvec3 &normal) noexcept |
Sets the plane normal. More... | |
constexpr void | set_constant (float constant) noexcept |
Sets the plane constant. More... | |
constexpr const plane_type & | get_plane () const noexcept |
Returns the plane shape. More... | |
constexpr const math::fvec3 & | get_normal () const noexcept |
Returns the plane normal, in object space. More... | |
constexpr float | get_constant () const noexcept |
Returns the plane constant. More... | |
constexpr | plane_collider (const math::fvec3 &normal, float constant) noexcept |
Constructs a plane collider from a normal and constant. More... | |
constexpr | plane_collider (const math::fvec3 &normal) noexcept |
Constructs a plane collider from a normal and constant. More... | |
constexpr | plane_collider () noexcept=default |
Constructs a plane collider from a normal and constant. 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... | |
Plane collision object.
Definition at line 31 of file plane-collider.hpp.
using physics::plane_collider::plane_type = geom::plane<float> |
Plane type.
Definition at line 35 of file plane-collider.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a plane collider from a plane.
plane | Plane shape. |
Definition at line 47 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Constructs a plane collider from a normal and constant.
normal | Plane normal, in object space. |
constant | Plane constant. |
Definition at line 58 of file plane-collider.hpp.
|
inlineexplicitconstexprnoexcept |
Constructs a plane collider from a normal and constant.
normal | Plane normal, in object space. |
constant | Plane constant. |
Definition at line 61 of file plane-collider.hpp.
|
constexprdefaultnoexcept |
Constructs a plane collider from a normal and constant.
normal | Plane normal, in object space. |
constant | Plane constant. |
|
inlineconstexprnoexcept |
Constructs a plane collider from a normal and offset.
normal | Plane normal, in object space. |
offset | Offset from the origin, in object space. |
Definition at line 73 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Returns the plane constant.
Definition at line 120 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Returns the plane normal, in object space.
Definition at line 114 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Returns the plane shape.
Definition at line 108 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Sets the plane constant.
constant | Plane constant. |
Definition at line 102 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Sets the plane normal.
normal | Plane normal, in object space. |
Definition at line 92 of file plane-collider.hpp.
|
inlineconstexprnoexcept |
Sets the collider's plane.
plane | Plane shape. |
Definition at line 82 of file plane-collider.hpp.
|
inlineconstexproverridevirtualnoexcept |
Returns the collider type.
Implements physics::collider.
Definition at line 37 of file plane-collider.hpp.