Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Type
World
A world is an object that contains all bodies and joints.
Create a new world with
love.physics.newWorld
.
A world can call these functions:
Functions
getBodyCount( )
Get the number of bodies in the world.
getCallbacks( )
Get functions to be called when two shapes collide.
getGravity( )
Get the gravity of the world.
getJointCount( )
Get the number of joints in the world.
getMeter( )
Get the scale of the world.
isAllowSleep( )
Get the sleep behaviour of the world.
setAllowSleep( permission )
Set the sleep behaviour of the world.
setCallbacks( add, persist, remove, result )
Set functions to be called when shapes collide.
setGravity( x, y )
Set the gravity of the world.
setMeter( scale )
Set the scale of the world.
update( dt )
Update the state of the world.
See Also
love.physics.newWorld
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question