Table of Contents

orxBODY structure

Allows the creation and handling of physical bodies. They are used as a container with associated properties. Bodies are used by objects. They thus can be referenced by objects as structures.

Summary

Body

[BodyTemplate]
Inertia        = <float>
Mass           = <float>
LinearDamping  = <float>
AngularDamping = <float>
FixedRotation  = <bool>
HighSpeed      = <bool>
Dynamic        = <bool>
CustomGravity  = <vector>
AllowSleep     = <bool>
AllowMoving    = <bool>
PartList       = BodyPartTemplate1 # ... # BodyPartTemplateN

BodyPart

Sphere

[BodyPartSphereTemplate]
Type        = sphere
Center      = <vector> | full
Radius      = <float> | full
CheckMask   = <16b flags>
SelfFlags   = <16b flags>
Density     = <float>
Friction    = <float>
Restitution = <float>
Solid       = <bool>

Box

[BodyPartBoxTemplate]
Type        = box
TopLeft     = <vector> | full
BottomRight = <vector> | full
CheckMask   = <16b flags>
SelfFlags   = <16b flags>
Density     = <float>
Friction    = <float>
Restitution = <float>
Solid       = <bool>

Mesh (polygon)

[BodyPartMeshTemplate]
Type        = mesh
VertexList  = <vector>#<vector>#...
CheckMask   = <16b flags>
SelfFlags   = <16b flags>
Density     = <float>
Friction    = <float>
Restitution = <float>
Solid       = <bool>

Edge

[BodyPartEdgeTemplate]
Type           = edge
VertexList     = <vector>
PreviousVertex = <vector>
NextVertex     = <vector>
Friction       = <float>
Restitution    = <float>
Density        = <float>
SelfFlags      = flags
CheckMask      = flags
Solid          = <bool>

Details

Body

Here's a list of the available properties for an orxBODY structure:

BodyPart

Common

Here's a list of the available properties for all types of body parts:

Sphere

Here's a list of the available properties only available to sphere parts:

Box

Here's a list of the available properties only available to box parts:

Mesh (polygon)

Here's a list of the available properties only available to mesh 4) parts:

Edge
Chain

Latest config settings for the Development Version

We endeavor to keep the config properties on this page up to date as often as possible. For up to the minute config information for the latest version of Orx, check the most recent published at:

CreationTemplate.ini and

SettingsTemplate.ini

Additionally these files can be found under your orx source tree in the orx/code/bin folder.

1)
Check the documentation of Box2D for more information on filtering
2)
Check the documentation of Box2D for more information on friction/restitution
3) , 5)
by looking directly at the config files as they're not covered in the wiki
4)
convex polygon