playrho::d2::ShapeConf Struct Reference
Shape configuration structure. More...
#include <ShapeConf.hpp>
Public Member Functions | |
PLAYRHO_CONSTEXPR | ShapeBuilder ()=default |
Default constructor. More... | |
PLAYRHO_CONSTEXPR | ShapeBuilder (const BaseShapeConf &value) noexcept |
Initializing constructor. More... | |
Public Member Functions inherited from playrho::d2::ShapeBuilder< ShapeConf > | |
PLAYRHO_CONSTEXPR | ShapeBuilder ()=default |
Default constructor. More... | |
PLAYRHO_CONSTEXPR | ShapeBuilder (const BaseShapeConf &value) noexcept |
Initializing constructor. More... | |
PLAYRHO_CONSTEXPR ShapeConf & | UseFriction (NonNegative< Real > value) noexcept |
Uses the given friction. More... | |
PLAYRHO_CONSTEXPR ShapeConf & | UseRestitution (Finite< Real > value) noexcept |
Uses the given restitution. More... | |
PLAYRHO_CONSTEXPR ShapeConf & | UseDensity (NonNegative< AreaDensity > value) noexcept |
Uses the given density. More... | |
Additional Inherited Members | |
Public Attributes inherited from playrho::d2::BaseShapeConf | |
NonNegative< Real > | friction = NonNegative<Real>{Real{2} / Real{10}} |
Friction coefficient. More... | |
Finite< Real > | restitution = Finite<Real>{0} |
Restitution (elasticity) of the associated shape. More... | |
NonNegative< AreaDensity > | density = NonNegative<AreaDensity>{0_kgpm2} |
Area density of the associated shape. More... | |
Detailed Description
Shape configuration structure.
Definition at line 118 of file ShapeConf.hpp.
Member Function Documentation
◆ ShapeBuilder() [1/2]
|
inlinedefault |
Default constructor.
◆ ShapeBuilder() [2/2]
|
inlineexplicitnoexcept |
Initializing constructor.
Definition at line 77 of file ShapeConf.hpp.
The documentation for this struct was generated from the following file:
- Collision/Shapes/ShapeConf.hpp