PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::part::StaticTenthsFriction< F > Struct Template Reference

Static tenths friction. More...

#include <playrho/d2/part/Compositor.hpp>

Static Public Attributes

static constexpr auto friction = NonNegative<Real>{Real(F) / Real{10}}
 Friction of the shape.
 

Detailed Description

template<int F = 2>
struct playrho::d2::part::StaticTenthsFriction< F >

Static tenths friction.

Provides a compile-time static class implementation of the friction policy of the Compositor host class template.

Note
This class is not intended for standalone use.
This is a special template class for achieving fractional frictions with pre C++20 versions of C++ that don't yet support float and double template parameters.
See also
StaticFriction, DynamicFriction, Compositor.

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