Difference between revisions of "World"

Line 1: Line 1:
 
A world is an object that contains all bodies and joints.
 
A world is an object that contains all bodies and joints.
 
+
== Constructors ==
Create a new world with [[love.physics.newWorld]].
+
{{#ask: [[Category:Functions]] [[Constructs::World]] [[Since::<071]]
 
 
 
 
A world can call these functions:
 
 
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::World]]
 
 
| headers=hide
 
| headers=hide
 +
| default=None.
 
| ?Description
 
| ?Description
 
}}
 
}}
{{#ask: [[Category:Functions]] [[parent::Object]]
+
== Functions ==
 +
{{#ask: [[Category:Functions]] [[parent::World||Object]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 19: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
* [[love.physics.newWorld]]
 
 
[[Category:Types]]
 
[[Category:Types]]
{{#set:Description=A world is an object that contains all bodies and joints.
+
{{#set:Description=A world is an object that contains all bodies and joints.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|World}}
 
{{i18n|World}}

Revision as of 17:53, 25 March 2011

A world is an object that contains all bodies and joints.

Constructors

love.physics.newWorldCreates a new World.

Functions

Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
World:getBodyCountReturns the number of bodies in the world.
World:getCallbacksReturns functions for the callbacks during the world update.
World:getGravityGet the gravity of the world.
World:getJointCountReturns the number of joints in the world.
World:isAllowSleepGet the sleep behaviour of the world.
World:setAllowSleepSet the sleep behaviour of the world.
World:setCallbacksSets functions to be called when shapes collide.
World:setGravitySet the gravity of the world.
World:setMeterSet the scale of the world.
World:updateUpdate the state of the world.

Supertypes

Object

See Also


Other Languages