2#include <engine/engine_export.h>
30 using sptr = std::shared_ptr<physics_material>;
31 using wptr = std::weak_ptr<physics_material>;
32 using uptr = std::unique_ptr<physics_material>;
63 const float min_stiffness = 1e3f;
64 const float max_stiffness = 1e5f;
65 return min_stiffness +
stiffness * (max_stiffness - min_stiffness);
Represents the physical properties of a material.
std::weak_ptr< physics_material > wptr
Weak pointer to a physics material.
auto get_stiffness() const -> float
Converts normalized stiffness to actual stiffness.
combine_mode friction_combine
How to combine friction values.
combine_mode restitution_combine
How to combine restitution values.
std::shared_ptr< physics_material > sptr
Shared pointer to a physics material.
std::unique_ptr< physics_material > uptr
Unique pointer to a physics material.