Builder configuration structure. More...
#include <ShapeConf.hpp>
Public Member Functions | |
constexpr | ShapeBuilder ()=default |
Default constructor. | |
constexpr | ShapeBuilder (const BaseShapeConf &value) noexcept |
Initializing constructor. | |
constexpr ConcreteConf & | UseFriction (NonNegative< Real > value) noexcept |
Uses the given friction. | |
constexpr ConcreteConf & | UseRestitution (Finite< Real > value) noexcept |
Uses the given restitution. | |
constexpr ConcreteConf & | UseDensity (NonNegative< AreaDensity > value) noexcept |
Uses the given density. | |
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... | |
Builder configuration structure.
This is a builder structure of chainable methods for building a shape configuration.