Difference between revisions of "BodyType"

(Added physics body types enum.)
 
Line 2: Line 2:
 
== Constants ==
 
== Constants ==
 
;static: Static bodies do not move.
 
;static: Static bodies do not move.
;dynamic: Dynamic bodies collide with static bodies.
+
;dynamic: Dynamic bodies collide with all bodies.
;kinematic: Kinematic bodies do only collide with dynamic bodies.
+
;kinematic: Kinematic bodies only collide with dynamic bodies.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]

Revision as of 21:02, 9 April 2012

The types of a Body.

Constants

static
Static bodies do not move.
dynamic
Dynamic bodies collide with all bodies.
kinematic
Kinematic bodies only collide with dynamic bodies.

See Also


Other Languages