PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::ShapeConf Struct Reference

Shape configuration structure. More...

#include <playrho/d2/ShapeConf.hpp>

Inheritance diagram for playrho::d2::ShapeConf:
[legend]
Collaboration diagram for playrho::d2::ShapeConf:
[legend]

Additional Inherited Members

- Public Member Functions inherited from playrho::d2::ShapeBuilder< ShapeConf >
constexpr ShapeConfUseDensity (NonNegative< AreaDensity > value) noexcept
 Uses the given density.
 
constexpr ShapeConfUseFilter (Filter value) noexcept
 Uses the given filter.
 
constexpr ShapeConfUseFriction (NonNegative< Real > value) noexcept
 Uses the given friction.
 
constexpr ShapeConfUseIsSensor (bool value) noexcept
 Uses the given is-sensor value.
 
constexpr ShapeConfUseRestitution (Finite< Real > value) noexcept
 Uses the given restitution.
 
- Public Attributes inherited from playrho::d2::BaseShapeConf
NonNegative< AreaDensitydensity = DefaultDensity
 Area density of the associated shape. More...
 
Filter filter = DefaultFilter
 Filtering data for contacts.
 
NonNegative< Realfriction = DefaultFriction
 Friction coefficient. More...
 
bool isSensor = DefaultIsSensor
 A sensor shape collects contact information but never generates a collision response.
 
Finite< Realrestitution = DefaultRestitution
 Restitution (elasticity) of the associated shape. More...
 
- Static Public Attributes inherited from playrho::d2::BaseShapeConf
static constexpr auto DefaultDensity = NonNegative<AreaDensity>{0_kgpm2}
 Default density value.
 
static constexpr auto DefaultFilter = Filter{}
 Default filter value.
 
static constexpr auto DefaultFriction = NonNegative<Real>{Real{2} / Real{10}}
 Default friction value.
 
static constexpr auto DefaultIsSensor = false
 Default is-sensor value.
 
static const auto DefaultRestitution = Finite<Real>{}
 Default restitution value.
 

Detailed Description

Shape configuration structure.


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