World (Tiếng Việt)

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.newWorld Creates a new World.

Hàm

Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.
World:destroy Destroys the world.
World:getAllowSleeping Returns the sleep behaviour of the world.
World:getBodyCount Returns the number of bodies in the world.
World:getBodyList Returns a table with all bodies.
World:getCallbacks Returns functions for the callbacks during the world update.
World:getContactCount Returns the number of contacts in the world.
World:getContactFilter Returns the function for collision filtering.
World:getContactList Returns a table with all contacts.
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.
World:isAllowSleep Get the sleep behaviour of the world.
World:isLocked Returns if the world is updating its state.
World:isSleepingAllowed Gets the sleep behaviour of the world.
World:queryBoundingBox Calls a function for each fixture inside the specified area.
World:rayCast Casts a ray and calls a function with the fixtures that intersect it.
World:setAllowSleep Set the sleep behaviour of the world.
World:setAllowSleeping Sets the sleep behaviour of the world.
World:setCallbacks Sets functions to be called when shapes collide.
World:setContactFilter Sets a function for collision filtering.
World:setGravity Set the gravity of the world.
World:setMeter Set the scale of the world.
World:setSleepingAllowed Sets the sleep behaviour of the world.
World:translateOrigin Translates the World's origin.
World:update Update the state of the world.

Kiểu cấp trên

Object

Xem thêm


Ngôn ngữ khác

Personal tools