I've been trying out the physics module, just so I can get the hang of it. However, when trying to create a polygon shape, it fails. The löve file simply opens, shows a white screen, and crashes/closes.
I've removed all the non-error-causing code, and am left with this:
Code: Select all
function love.load()
world = love.physics.newWorld(0, 0, 800, 600)
world:setGravity(0, 0)
body = love.physics.newBody(world, 400, 300, 100, 0)
shape = love.physics.newPolygonShape(body, 0, 0, 1, 0, 0, 1)
end
Thanks!
EDIT: I've attached the .love file