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 == | |
− | + | {{#ask: [[Category:Functions]] [[Constructs::World]] [[Since::<071]] | |
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | {{#ask: [[Category:Functions]] [[ | ||
| 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]] | ||
− | |||
[[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.newWorld | Creates a new World. |
Functions
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
World:getBodyCount | Returns the number of bodies in the world. |
World:getCallbacks | Returns functions for the callbacks during the world update. |
World:getGravity | Get the gravity of the world. |
World:getJointCount | Returns the number of joints in the world. |
World:isAllowSleep | Get the sleep behaviour of the world. |
World:setAllowSleep | Set the sleep behaviour of the world. |
World:setCallbacks | Sets functions to be called when shapes collide. |
World:setGravity | Set the gravity of the world. |
World:setMeter | Set the scale of the world. |
World:update | Update the state of the world. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info