User Tools

Site Tools


en:orx:config:settings_structure:orxbody

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:config:settings_structure:orxbody [2018/05/13 16:12 (7 years ago)] sausageen:orx:config:settings_structure:orxbody [2023/09/19 23:18 (19 months ago)] (current) – [Summary] sausage
Line 7: Line 7:
 === 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 ===
Line 22: Line 26:
 == Sphere == == Sphere ==
  
-<code ini>[BodyPartSphereTemplate]+<code ini> 
 +[BodyPartSphereTemplate]
 Type        = sphere Type        = sphere
 Center      = <vector> | full Center      = <vector> | full
Line 31: Line 36:
 Friction    = <float> Friction    = <float>
 Restitution = <float> Restitution = <float>
-Solid       = <bool></code>+Solid       = <bool> 
 +</code>
  
 == Box == == Box ==
Line 44: Line 50:
 Friction    = <float> Friction    = <float>
 Restitution = <float> Restitution = <float>
-Solid       = <bool></code>+Solid       = <bool> 
 +</code>
  
 == Mesh (polygon) == == Mesh (polygon) ==
Line 56: Line 63:
 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 ====
  
Line 73: Line 95:
   * ''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.
  
  
Line 90: Line 114:
 Here's a list of the available properties only available to sphere parts: Here's a list of the available properties only available to sphere parts:
   * ''Center'': Defines the center of the sphere (in 2D it's a circle, of course) in the parent's space (ie. in object's space). By default its value is ''full'' which means the center will match the object's one (ie. the center of its current graphic).   * ''Center'': Defines the center of the sphere (in 2D it's a circle, of course) in the parent's space (ie. in object's space). By default its value is ''full'' which means the center will match the object's one (ie. the center of its current graphic).
-  * ''Radius'': Defines the radius of the sphere (or 2D circle). By default its value is ''full'' which means the sphere's radius will match the biggest dimension of the parent object. You can find an example in the [[en:tutorials:spawner|spawner tutorial]] ((by looking directly at the config files as they're not covered in the wiki)).+  * ''Radius'': Defines the radius of the sphere (or 2D circle). By default its value is ''full'' which means the sphere's radius will match the biggest dimension of the parent object. 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)).
  
 == Box == == Box ==
  
 Here's a list of the available properties only available to box parts: Here's a list of the available properties only available to box parts:
-  * ''TopLeft/BottomRight'': Define the extrema of the box (in 2D it's a rectangle, of course) in the parent's space (ie. in object's space). By default their values are ''full'' which means ''TopLeft'' and ''BottomRight'' will match the full rectangle defined by the parent object's current graphic. You can find an example in the [[en:tutorials:physics|physics tutorial]].+  * ''TopLeft/BottomRight'': Define the extrema of the box (in 2D it's a rectangle, of course) in the parent's space (ie. in object's space). By default their values are ''full'' which means ''TopLeft'' and ''BottomRight'' will match the full rectangle defined by the parent object's current graphic. You can find an example in the [[en:tutorials:physics:physics|physics tutorial]].
  
 == Mesh (polygon) == == Mesh (polygon) ==
  
 Here's a list of the available properties only available to mesh ((convex polygon)) parts: Here's a list of the available properties only available to mesh ((convex polygon)) parts:
-  * ''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: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}}
en/orx/config/settings_structure/orxbody.1526253175.txt.gz · Last modified: 2018/05/13 19:12 (7 years ago) (external edit)