love.physics, change size after creation?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

love.physics, change size after creation?

Post 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!
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: love.physics, change size after creation?

Post by Plu »

You can change the Radius of a CircleShape but I don't think you can modify the dimensions of the Polygon.
User avatar
daviddoran
Prole
Posts: 30
Joined: Sun Mar 24, 2013 5:35 am

Re: love.physics, change size after creation?

Post by daviddoran »

I think you have to destroy the fixture and create a new fixture with your enlarged shape.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 8 guests