Difference between revisions of "BodyType"

(Added physics body types enum.)
 
m
 
(3 intermediate revisions by 2 users not shown)
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::Body]]
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
* [[love.physics.newBody]]
 
* [[Body]]
 
 
[[Category:Enums]]
 
[[Category:Enums]]
 
{{#set:Description=The types of a [[Body]].}}
 
{{#set:Description=The types of a [[Body]].}}

Latest revision as of 01:00, 6 November 2016

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