Love Physics Polygon Creation[Resolved]
Posted: Sat May 11, 2013 12:52 pm
Hi. I'm posting here because I'm trying to make a Polygons shape with love.physics, but it just refuses to work.
As a way of trouble shooting, I'm only looking to be able to draw a 10x10 square with love.physics.newRectangleShape
CODE: SELECT ALL
self.shape = love.physics.newPolygonShape(0, 0, 10, 0, 10, 10, 0, 10)
--self.shape = love.physics.newRectangleShape(10, 10)
Both lines of code should technically achieve the same thing, but only the latter works.
Check it out yourself if you're interested. The code is in actor.lua.
As a way of trouble shooting, I'm only looking to be able to draw a 10x10 square with love.physics.newRectangleShape
CODE: SELECT ALL
self.shape = love.physics.newPolygonShape(0, 0, 10, 0, 10, 10, 0, 10)
--self.shape = love.physics.newRectangleShape(10, 10)
Both lines of code should technically achieve the same thing, but only the latter works.
Check it out yourself if you're interested. The code is in actor.lua.