Difference between revisions of "World (Tiếng Việt)"

(Created page with "Môi trường (World) là một đối tượng chứa tất cả vật thể và khớp nối. == Constructor == {{#ask: Category:Functions Constructs::World [[Concept:...")
 
m
 
Line 12: Line 12:
 
}}
 
}}
 
== Kiểu cấp trên ==
 
== Kiểu cấp trên ==
[[Object]]
+
[[Object (Tiếng Việt)|Object]]
 
== Xem thêm ==
 
== Xem thêm ==
 
* [[parent::love.physics (Tiếng Việt)|love.physics]]
 
* [[parent::love.physics (Tiếng Việt)|love.physics]]

Latest revision as of 06:49, 14 September 2012

Môi trường (World) là một đối tượng chứa tất cả vật thể và khớp nối.

Constructor

love.physics.newWorldCreates a new World.

Hàm

Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
World:destroyDestroys the world.
World:getAllowSleepingReturns the sleep behaviour of the world.
World:getBodiesReturns a table with all bodies.
World:getBodyCountReturns the number of bodies in the world.
World:getBodyListReturns a table with all bodies.
World:getCallbacksReturns functions for the callbacks during the world update.
World:getContactCountReturns the number of contacts in the world.
World:getContactFilterReturns the function for collision filtering.
World:getContactListReturns a table with all contacts.
World:getContactsReturns a table with all Contacts.
World:getGravityGet the gravity of the world.
World:getJointCountReturns the number of joints in the world.
World:getJointListReturns a table with all joints.
World:getJointsReturns a table with all joints.
World:isAllowSleepGet the sleep behaviour of the world.
World:isDestroyedGets whether the World is destroyed.
World:isLockedReturns if the world is updating its state.
World:isSleepingAllowedGets the sleep behaviour of the world.
World:queryBoundingBoxCalls a function for each fixture inside the specified area.
World:rayCastCasts a ray and calls a function with the fixtures that intersect it.
World:setAllowSleepSet the sleep behaviour of the world.
World:setAllowSleepingSets the sleep behaviour of the world.
World:setCallbacksSets functions to be called when shapes collide.
World:setContactFilterSets a function for collision filtering.
World:setGravitySet the gravity of the world.
World:setMeterSet the scale of the world.
World:setSleepingAllowedSets the sleep behaviour of the world.
World:translateOriginTranslates the World's origin.
World:updateUpdate the state of the world.

Kiểu cấp trên

Object

Xem thêm


Ngôn ngữ khác