0.8.0 Physics
Posted: Wed May 16, 2012 4:44 pm
Hey everyone,
I'm trying out the never version of löve, but it's not even detecting basic physics functions. I don't know exactly what changes were made, so I'm not sure what I'm doing wrong. Take, for example, just this full code:
Once I run it, I get the error that 'setDensity' is a nil value. Why is this?
Also, how do you link a shape to a body? In previous versions, the first argument for new shapes asked for its body, but how does it work now?
Thanks!
I'm trying out the never version of löve, but it's not even detecting basic physics functions. I don't know exactly what changes were made, so I'm not sure what I'm doing wrong. Take, for example, just this full code:
Code: Select all
function love.load()
shape = love.physics.newRectangleShape(800, 200)
shape:setDensity(0.5)
end
Also, how do you link a shape to a body? In previous versions, the first argument for new shapes asked for its body, but how does it work now?
Thanks!