PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::DynamicTree::LeafData Struct Reference

Leaf data of a tree node. More...

#include <DynamicTree.hpp>

Collaboration diagram for playrho::d2::DynamicTree::LeafData:
[legend]

Public Attributes

BodyID body
 Identifier of the associated body. More...
 
FixtureID fixture
 Identifier of the associated Fixture.
 
ChildCounter childIndex
 Child index of related Shape.
 

Related Functions

(Note that these are not member functions.)

constexpr bool operator== (const DynamicTree::LeafData &lhs, const DynamicTree::LeafData &rhs) noexcept
 Equality operator.
 
constexpr bool operator!= (const DynamicTree::LeafData &lhs, const DynamicTree::LeafData &rhs) noexcept
 Inequality operator.
 

Detailed Description

Leaf data of a tree node.

This is the leaf node specific data for a DynamicTree::TreeNode. It's data that only pertains to leaf nodes.

Note
This class is used in the DynamicTree::VariantData union within a DynamicTree::TreeNode. This has ramifications on this class's data contents and size.

Member Data Documentation

◆ body

BodyID playrho::d2::DynamicTree::LeafData::body

Identifier of the associated body.

Note
This field serves merely to potentially avoid the lookup of the body through the fixture.

Referenced by playrho::d2::WorldImpl::Add().


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