Changing size/mass

Official forum for the Chipmunk2D Physics Library.
Post Reply
Roybie
Posts: 4
Joined: Tue Feb 17, 2009 12:08 pm
Contact:

Changing size/mass

Post by Roybie »

I was just wondering if there was an easy way to change the size and mass of a shape/body at runtime.

I know you can change the mass of the body, but the size part is probably the most important bit to me.

What would be the best way to go about it since I'm assuming deleting and remaking shapes and whatnot all the time is pretty expensive.

Cheers.
Ben
Posts: 5
Joined: Fri Jan 30, 2009 6:36 am
Contact:

Re: Changing size/mass

Post by Ben »

Just a couple of topics down is a thread titled 'Resizing cpShape'.

http://www.slembcke.net/forums/viewtopic.php?f=1&t=371
Roybie
Posts: 4
Joined: Tue Feb 17, 2009 12:08 pm
Contact:

Re: Changing size/mass

Post by Roybie »

How the hell did I miss that?

I'd just looked through the whole forum too. What an idiot. :P

Cheers Ben.
Post Reply

Who is online

Users browsing this forum: Metager [Bot] and 27 guests