PlayRho  2.0.0
An interactive 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
 A "body" physical entity. More...
 
class  playrho::Contact
 A potential contact between the children of two body associated shapes. 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 function whose name begins with the prefix of Create. Similarly, these instances are typically destroyed using a Destroy function.

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 shape = CreateShape(world, Shape{DiskShapeConf{1_m}});
const auto body = CreateBody(world, BodyConf{}.Use(BodyType::Dynamic).Use(shape));
BodyID CreateBody(AabbTreeWorld &world, Body body=Body{})
Creates a rigid body that's a copy of the given one.
Definition: AabbTreeWorld.cpp:1019
ShapeID CreateShape(AabbTreeWorld &world, Shape def)
Creates an identifiable copy of the given shape within this world.
Definition: AabbTreeWorld.cpp:1234
See also
World.
BodyID, CreateBody, Destroy(World&, BodyID), GetBodies.
ShapeID, CreateShape, Destroy(World&, ShapeID).
JointID, CreateJoint, Destroy(World&, JointID), GetJoints(const World&).
ContactID, GetContacts(const World&).
BodyType, Shape, DiskShapeConf.