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 ShapeConfUseFriction (NonNegative< Real > value) noexcept
 Uses the given friction. More...
 
PLAYRHO_CONSTEXPR ShapeConfUseRestitution (Finite< Real > value) noexcept
 Uses the given restitution. More...
 
PLAYRHO_CONSTEXPR ShapeConfUseDensity (NonNegative< AreaDensity > value) noexcept
 Uses the given density. More...
 

Additional Inherited Members

- Public Attributes inherited from playrho::d2::BaseShapeConf
NonNegative< Realfriction = NonNegative<Real>{Real{2} / Real{10}}
 Friction coefficient. More...
 
Finite< Realrestitution = Finite<Real>{0}
 Restitution (elasticity) of the associated shape. More...
 
NonNegative< AreaDensitydensity = 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]

Default constructor.

◆ ShapeBuilder() [2/2]

PLAYRHO_CONSTEXPR playrho::d2::ShapeBuilder< ConcreteConf >::ShapeBuilder
inlineexplicitnoexcept

Initializing constructor.

Definition at line 77 of file ShapeConf.hpp.


The documentation for this struct was generated from the following file: