Difference between revisions of "World (Русский)"
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Конструкторы == | == Конструкторы == | ||
− | {{#ask: [[Category:Functions]] [[Constructs:: | + | {{#ask: [[Category:Functions]] [[Constructs::World_(Русский)]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 27: | Line 27: | ||
== Смотрите также == | == Смотрите также == | ||
* [[parent::love.physics_(Русский)]] | * [[parent::love.physics_(Русский)]] | ||
− | * [[love.physics. | + | * [[love.physics.newWorld_(Русский)]] |
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Объект, содержащий все тела и соединения. | {{#set:Description=Объект, содержащий все тела и соединения. |
Latest revision as of 16:22, 5 June 2013
Объект, содержащий все тела и соединения.
Конструкторы
love.physics.newWorld (Русский) | Создает объект World. |
Функции
World:destroy | Destroys the world. | 0.8.0 | |
World:getAllowSleeping | Returns the sleep behaviour of the world. | 0.8.0 | 0.9.0 |
World:getBodies | Returns a table with all bodies. | 11.0 | |
World:getBodyCount | Returns the number of bodies in the world. | ||
World:getBodyList | Returns a table with all bodies. | 0.8.0 | |
World:getCallbacks | Returns functions for the callbacks during the world update. | ||
World:getContactCount | Returns the number of contacts in the world. | 0.8.0 | |
World:getContactFilter | Returns the function for collision filtering. | 0.8.0 | |
World:getContactList | Returns a table with all contacts. | 0.8.0 | |
World:getContacts | Returns a table with all Contacts. | 11.0 | |
World:getGravity | Get the gravity of the world. | ||
World:getJointCount | Returns the number of joints in the world. | ||
World:getJointList | Returns a table with all joints. | 0.8.0 | |
World:getJoints | Returns a table with all joints. | 11.0 | |
World:getMeter | Get the scale of the world. | 0.8.0 | |
World:getShapesInArea | Gets a list of Shapes inside the specified area | 12.0 | |
World:isAllowSleep | Get the sleep behaviour of the world. | 0.8.0 | |
World:isDestroyed | Gets whether the World is destroyed. | 0.9.2 | |
World:isLocked | Returns if the world is updating its state. | 0.8.0 | |
World:isSleepingAllowed | Gets the sleep behaviour of the world. | 0.9.0 | |
World:queryBoundingBox | Calls a function for each fixture inside the specified area. | 0.8.0 | |
World:queryShapesInArea | Calls a function for each Shape inside the specified area. | 12.0 | |
World:rayCast | Casts a ray and calls a function with the fixtures that intersect it. | 0.8.0 | |
World:rayCastAny | Casts a ray and returns an intersection point if the ray touched any Shape in the world. | 12.0 | |
World:rayCastClosest | Casts a ray and returns the intersection point of the closest Shape touched by the ray, if any. | 12.0 | |
World:setAllowSleep | Set the sleep behaviour of the world. | 0.8.0 | |
World:setAllowSleeping | Sets the sleep behaviour of the world. | 0.8.0 | 0.9.0 |
World:setCallbacks | Sets functions to be called when shapes collide. | 0.8.0 | |
World:setContactFilter | Sets a function for collision filtering. | 0.8.0 | |
World:setGravity | Set the gravity of the world. | ||
World:setMeter | Set the scale of the world. | 0.8.0 | |
World:setSleepingAllowed | Sets the sleep behaviour of the world. | 0.9.0 | |
World:translateOrigin | Translates the World's origin. | 0.9.0 | |
World:update | Update the state of the world. |
Смотрите также
Другие языки
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