Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:orx:config:settings_structure:orxbody [2020/08/31 05:14 (5 years ago)] – ↷ Links adapted because of a move operation sausage | en:orx:config:settings_structure:orxbody [2023/09/19 23:18 (19 months ago)] (current) – [Summary] sausage |
---|
=== Body === | === Body === |
| |
<code ini>[BodyTemplate] | <code ini> |
PartList = BodyPartTemplate1#BodyPartTemplate2#... | [BodyTemplate] |
AngularDamping = <float> | Inertia = <float> |
CustomGravity = <vector> | Mass = <float> |
Dynamic = <bool> | LinearDamping = <float> |
FixedRotation = <bool> | AngularDamping = <float> |
HighSpeed = <bool> | FixedRotation = <bool> |
Inertia = <float> | HighSpeed = <bool> |
LinearDamping = <float> | Dynamic = <bool> |
Mass = <float></code> | CustomGravity = <vector> |
| AllowSleep = <bool> |
| AllowMoving = <bool> |
| PartList = BodyPartTemplate1 # ... # BodyPartTemplateN |
| </code> |
| |
=== BodyPart === | === BodyPart === |
== Sphere == | == Sphere == |
| |
<code ini>[BodyPartSphereTemplate] | <code ini> |
| [BodyPartSphereTemplate] |
Type = sphere | Type = sphere |
Center = <vector> | full | Center = <vector> | full |
Friction = <float> | Friction = <float> |
Restitution = <float> | Restitution = <float> |
Solid = <bool></code> | Solid = <bool> |
| </code> |
| |
== Box == | == Box == |
Friction = <float> | Friction = <float> |
Restitution = <float> | Restitution = <float> |
Solid = <bool></code> | Solid = <bool> |
| </code> |
| |
== Mesh (polygon) == | == Mesh (polygon) == |
Friction = <float> | Friction = <float> |
Restitution = <float> | Restitution = <float> |
Solid = <bool></code> | Solid = <bool> |
| </code> |
| |
| == Edge == |
| |
| <code ini> |
| [BodyPartEdgeTemplate] |
| Type = edge |
| VertexList = <vector> |
| PreviousVertex = <vector> |
| NextVertex = <vector> |
| Friction = <float> |
| Restitution = <float> |
| Density = <float> |
| SelfFlags = flags |
| CheckMask = flags |
| Solid = <bool> |
| </code> |
==== Details ==== | ==== Details ==== |
| |
* ''LinearDamping'': Damping of speed (linear velocity) for this body. By default its value is 0.0, which means no damping. | * ''LinearDamping'': Damping of speed (linear velocity) for this body. By default its value is 0.0, which means no damping. |
* ''Mass'': Defines a mass, in kg, for this body. If parts are defined, the mass will be overridden by an automatically calculated value based of parts' sizes and positions. | * ''Mass'': Defines a mass, in kg, for this body. If parts are defined, the mass will be overridden by an automatically calculated value based of parts' sizes and positions. |
| * ''AllowMoving'': This is only used by static bodies. If set to true, the static body can be moved via its speed/angular velocity accessors. Defaults to true. |
| * ''AllowSleep'': Defaults to true. |
| |
| |
* ''VertexList'': Provides a list of vertex coordinates in parent object's space. The resulting polygon //needs// to be convex. Up to 8 vertices can be defined and they //**have to be entered clockwise**//. You can find an example in the [[en:tutorials:spawners:spawner|spawner tutorial]] ((by looking directly at the config files as they're not covered in the wiki)). | * ''VertexList'': Provides a list of vertex coordinates in parent object's space. The resulting polygon //needs// to be convex. Up to 8 vertices can be defined and they //**have to be entered clockwise**//. You can find an example in the [[en:tutorials:spawners:spawner|spawner tutorial]] ((by looking directly at the config files as they're not covered in the wiki)). |
| |
| == Edge == |
| |
| * ''VertexList'': This should contain exactly 2 vectors. |
| * ''PreviousVertex'': Optional previous ghost vertex. |
| * ''NextVertex'': Optional next ghost vertex. |
| |
| == Chain == |
| |
| * ''VertexList'': This should contain at least 2 vectors. |
| * ''PreviousVertex'': Optional previous ghost vertex. |
| * ''NextVertex'': Optional next ghost vertex. |
| * ''Loop'': If true, the chain will be treated as a closed loop. Defaults to false. |
| |
==== Latest config settings for the Development Version ==== | ==== Latest config settings for the Development Version ==== |
{{section>en:orx:config:developmentversion#&noheader&nofooter&noeditbutton}} | {{section>en:orx:config:developmentversion#&noheader&nofooter&noeditbutton}} |