Function
love.physics.newBody( world, x, y, m, i )
Create a new body.

A body with zero mass is static, and will not move.

Mass can be changed at any time with Body:setMass or Body:setMassFromShapes.

Synopsis
body = love.physics.newBody( world, x, y, m, i )
Parameters
world world The world to create the body in.
x = 0 number The x position of the body.
y = 0 number The y position of the body.
m = 0 number The mass of the body.
i = 0 number The rotational inertia of the body.
Returns
body Body A new body.
Copyright © 2006-2010 LÖVE Development Team.