is it safe to setshape after adding rigidbody to the world?

Post Reply
khoowaikeong
Posts: 43
Joined: Fri Jun 15, 2012 7:11 am

is it safe to setshape after adding rigidbody to the world?

Post by khoowaikeong »

i need to change the collision shape of my characters for certain state, is it safe to just setshape it? or do i have to create a new rigidbody?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: is it safe to setshape after adding rigidbody to the wor

Post by Erwin Coumans »

First remove the body from the world, make the change and re-add it to the world.

Thanks,
Erwin
khoowaikeong
Posts: 43
Joined: Fri Jun 15, 2012 7:11 am

Re: is it safe to setshape after adding rigidbody to the wor

Post by khoowaikeong »

so it is safe to reuse the same body as long as we readd it? understood.
Post Reply