PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::JointBuilder< T > Struct Template Reference

Joint builder definition structure. More...

#include <playrho/d2/JointConf.hpp>

Inheritance diagram for playrho::d2::JointBuilder< T >:
[legend]
Collaboration diagram for playrho::d2::JointBuilder< T >:
[legend]

Public Types

using reference = value_type &
 Reference type.
 
using value_type = T
 Value type.
 

Public Member Functions

constexpr reference UseBodyA (BodyID b) noexcept
 Use value for body A setting.
 
constexpr reference UseBodyB (BodyID b) noexcept
 Use value for body B setting.
 
constexpr reference UseCollideConnected (bool v) noexcept
 Use value for collide connected setting.
 

Additional Inherited Members

- Public Attributes inherited from playrho::d2::JointConf
BodyID bodyA = InvalidBodyID
 1st attached body.
 
BodyID bodyB = InvalidBodyID
 2nd attached body.
 
bool collideConnected = false
 Collide connected. More...
 

Detailed Description

template<class T>
struct playrho::d2::JointBuilder< T >

Joint builder definition structure.

This is a builder structure of chainable methods for building a shape configuration.

Note
Alignment requirement specified to ensure proper alignment of references returned for function chaining.
This is a templated nested value class for initializing joints that uses the Curiously Recurring Template Pattern (CRTP) to provide function chaining via static polymorphism.
See also
https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern

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