I'm having a hard time with the newPolygonShape function.
It keeps throwing me an error like "area > b2_epsilon", and don't quite know why.
I am trying to make an "L"-Shape.
This line here works without any problems (but lacks the last edge I need for the "L")
Code: Select all
love.physics.newPolygonShape(0,0,0,48,32,48,32,32,16,32)
Code: Select all
love.physics.newPolygonShape(0,0,0,48,32,48,32,32,16,32,16,0)
Any suggestions? Until now I made two single RectangleShapes and uses two fixtures to attach them to the body, but actually I don't think this is the best solution to this. So I wanted to rebuild my Shapes with the PolygonShape.
Would be great if any of you guys has an approach to this problem.
Thanks in advance
Edit:
Okay, I even tried to pass the vertices clockwise like:
Code: Select all
love.physics.newPolygonShape(0,0,16,0,16,32,32,32,32,48,0,48)
Any help?