Page 1 of 1

love.physics, change size after creation?

Posted: Thu Apr 04, 2013 4:33 pm
by Jeeper
Hey!
I have been playing around with the love.physics quite a bit but i have not been able to figure one thing out. Is it possible to change the size (width, height) of a shape after its been created (with for example love.physics.newRectangleShape)?

Thanks a lot in advance!

Re: love.physics, change size after creation?

Posted: Thu Apr 04, 2013 6:34 pm
by Plu
You can change the Radius of a CircleShape but I don't think you can modify the dimensions of the Polygon.

Re: love.physics, change size after creation?

Posted: Thu Apr 04, 2013 6:50 pm
by daviddoran
I think you have to destroy the fixture and create a new fixture with your enlarged shape.