Physical Entity Classes
Classes representing physical entities typically created/destroyed via factory methods. More...
Classes | |
class | playrho::d2::Body |
Physical entity that exists within a World. More... | |
class | playrho::d2::Contact |
A potential contact between the children of two Fixture objects. More... | |
class | playrho::d2::Fixture |
An association between a body and a shape. More... | |
class | playrho::d2::Joint |
Base joint class. More... | |
Detailed Description
Classes representing physical entities typically created/destroyed via factory methods.
Classes of creatable and destroyable managed instances that associate physical properties to simulations. These instances are typically created via a method whose name begins with the prefix of Create
. Similarly, these instances are typically destroyed using a method whose name begins with the prefix of Destroy
.
- Note
- For example, the following could be used to create a dynamic body having a one meter radius disk shape: auto world = World{};const auto fixture = body->CreateFixture(Shape{DiskShapeConf{1_m}});