Scaling or resizing a body ? Is it possible ?

Topics: Developer Forum
Dec 17, 2009 at 8:58 PM

Is it possible to resize a body, with all it's joints ?


Dec 18, 2009 at 11:53 AM

Don't know of any built in functionality for this, but you can ofcourse do it manually. Scaling and rotation can be a hassle, but you basically just multiply all points by a certain value. (positions, vertices, joint positions, etc) Or if you save your original constructing parameters you could just multiply all those values by your scale and rebuild it. You'll need to use SAT narrow collider to change vertices on the fly though.

Dec 18, 2009 at 12:35 PM

I could not find a way to change a body's width or scale without destroying it and making a new one.

Does Body expose these parameters ?