I have a variable, a, which has all the shape's coordinates from the first to the last:
Code: Select all
a=10,10,20,30,30,40,40,10
Code: Select all
shape.b=love.physics.newBody(world, 25,25,'static')
shape.s=love.physics.newChainShape(a)
shape.f=love.physics.newFixture(shape.b,shape.s)
All codes are in their appropriated functions.
I want to know what I am doing wrong, and if you can could you write a little exemple on how to do a chainshape ? The wiki doesn't have one and I don't realy understand how it works.
Thanks for reading, and if this post was approved then thank you mod for approving it