PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
Physical Entities

Concepts and types associated with physical entities within a world. More...

Collaboration diagram for Physical Entities:

Classes

class  playrho::d2::Body
 Physical entity that exists within a World. More...
 
struct  playrho::d2::BodyConf
 Configuration for a body. More...
 
class  playrho::d2::Contact
 A potential contact between the children of two Fixture objects. More...
 
struct  playrho::d2::FixtureConf
 Fixture definition. More...
 
class  playrho::d2::Joint
 A joint-like constraint on one or more bodies. More...
 

Detailed Description

Concepts and types associated with physical entities within a world.

Concepts and types of creatable and destroyable 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 body = world.CreateBody(BodyConf{}.UseType(BodyType::Dynamic));
const auto fixture = world.CreateFixture(
FixtureConf{}.UseBody(body).UseShape(DiskShapeConf{1_m}));
See also
World.
BodyID, World::CreateBody, World::Destroy(BodyID), World::GetBodies().
FixtureID, World::CreateFixture, World::Destroy(FixtureID).
JointID, World::CreateJoint, World::Destroy(JointID), World::GetJoints().
ContactID, World::GetContacts().
BodyType, Shape, DiskShapeConf.
playrho::BodyType::Static
@ Static
Static body type.