Describes the collision response of a collider.
More...
#include <collider-material.hpp>
Describes the collision response of a collider.
Definition at line 31 of file collider-material.hpp.
◆ collider_material() [1/2]
constexpr physics::collider_material::collider_material |
( |
float |
restitution, |
|
|
float |
static_friction, |
|
|
float |
dynamic_friction |
|
) |
| |
|
inlineconstexprnoexcept |
Constructs a collider material.
- Parameters
-
restitution | Restitution value. |
static_friction | Static friction value. |
dynamic_friction | Dynamic friction value. |
Definition at line 42 of file collider-material.hpp.
◆ collider_material() [2/2]
constexpr physics::collider_material::collider_material |
( |
| ) |
|
|
constexprdefaultnoexcept |
Constructs a collider material.
- Parameters
-
restitution | Restitution value. |
static_friction | Static friction value. |
dynamic_friction | Dynamic friction value. |
◆ get_density()
constexpr float physics::collider_material::get_density |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_dynamic_friction()
constexpr float physics::collider_material::get_dynamic_friction |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_friction_combine_mode()
◆ get_restitution()
constexpr float physics::collider_material::get_restitution |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_restitution_combine_mode()
◆ get_static_friction()
constexpr float physics::collider_material::get_static_friction |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ set_density()
constexpr void physics::collider_material::set_density |
( |
float |
density | ) |
|
|
inlineconstexprnoexcept |
◆ set_dynamic_friction()
constexpr void physics::collider_material::set_dynamic_friction |
( |
float |
friction | ) |
|
|
inlineconstexprnoexcept |
Sets the dynamic friction of the material.
- Parameters
-
friction | Dynamic friction value. |
Definition at line 75 of file collider-material.hpp.
◆ set_friction_combine_mode()
Sets the friction combine mode of the material.
- Parameters
-
mode | Friction combine mode. |
Definition at line 95 of file collider-material.hpp.
◆ set_restitution()
constexpr void physics::collider_material::set_restitution |
( |
float |
restitution | ) |
|
|
inlineconstexprnoexcept |
Sets the of restitution of the material.
- Parameters
-
restitution | Restitution value. |
Definition at line 55 of file collider-material.hpp.
◆ set_restitution_combine_mode()
Sets the restitution combine mode of the material.
- Parameters
-
mode | Restitution combine mode. |
Definition at line 85 of file collider-material.hpp.
◆ set_static_friction()
constexpr void physics::collider_material::set_static_friction |
( |
float |
friction | ) |
|
|
inlineconstexprnoexcept |
Sets the static friction of the material.
- Parameters
-
friction | Static friction value. |
Definition at line 65 of file collider-material.hpp.
The documentation for this class was generated from the following file: