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 revision Previous revision
en:orx:config:settings_structure:orxbody [2018/02/14 04:46 (10 months ago)]
iarwain ↷ Links adapted because of a move operation
en:orx:config:settings_structure:orxbody [2018/05/13 23:12 (7 months ago)] (current)
sausage
Line 82: Line 82:
   * ''​Type'':​ Defines the type of the body part. Available types are ''​sphere'',​ ''​box''​ and ''​mesh''​ (ie. convex polygon). This property //needs// to be defined.   * ''​Type'':​ Defines the type of the body part. Available types are ''​sphere'',​ ''​box''​ and ''​mesh''​ (ie. convex polygon). This property //needs// to be defined.
   * ''​CheckMask/​SelfFlags'':​ Both properties are flags expressed on 16bits. The ''​SelfFlags''​ defines this part identity whereas the ''​CheckMask''​ defines which parts are allowed to collide with it. For a collision to happen between two parts the expressions (Part1.CheckMask & Part2.SelfFlags) and (Part2.CheckMask & Part1.SelfFlags) have both to evaluate to ''​true''​. NB: Two parts of the same body won't collide whichever ''​CheckMask/​SelfFlags''​ they have. ((Check [[http://​www.box2d.org/​manual.html#​_Toc258082972|the documentation of Box2D]] for more information on filtering))   * ''​CheckMask/​SelfFlags'':​ Both properties are flags expressed on 16bits. The ''​SelfFlags''​ defines this part identity whereas the ''​CheckMask''​ defines which parts are allowed to collide with it. For a collision to happen between two parts the expressions (Part1.CheckMask & Part2.SelfFlags) and (Part2.CheckMask & Part1.SelfFlags) have both to evaluate to ''​true''​. NB: Two parts of the same body won't collide whichever ''​CheckMask/​SelfFlags''​ they have. ((Check [[http://​www.box2d.org/​manual.html#​_Toc258082972|the documentation of Box2D]] for more information on filtering))
-  * ''​Density'':​ Defines the density of this part. Its default value is 0.0, which means it doesn'​t have any influence on the body's mass.+  * ''​Density'':​ Defines the density of this part, an influences the body's mass. Its default value is 1.0.
   * ''​Friction/​Restitution'':​ Define the friction and restitution of this part, usually between 0.0 and 1.0. ((Check [[http://​www.box2d.org/​manual.html#​_Toc258082972|the documentation of Box2D]] for more information on friction/​restitution)) By default both their values are 0.0. Restitution is how much "​Bounce"​ an object has.   * ''​Friction/​Restitution'':​ Define the friction and restitution of this part, usually between 0.0 and 1.0. ((Check [[http://​www.box2d.org/​manual.html#​_Toc258082972|the documentation of Box2D]] for more information on friction/​restitution)) By default both their values are 0.0. Restitution is how much "​Bounce"​ an object has.
   * ''​Solid'':​ Defines if this part is solid or not. Only solid parts will trigger a reaction on their body when colliding with others. By default its value is ''​false''​ which means the collision info will be signaled through events, but the physics simulation of this body won't be automatically affected by it.   * ''​Solid'':​ Defines if this part is solid or not. Only solid parts will trigger a reaction on their body when colliding with others. By default its value is ''​false''​ which means the collision info will be signaled through events, but the physics simulation of this body won't be automatically affected by it.
en/orx/config/settings_structure/orxbody.txt · Last modified: 2018/05/13 23:12 (7 months ago) by sausage