Just wondering... if a body leaves the world bounds, can i restore it by unsetting the frozen bit and setting the XForm to something in bounds? Or do I have to completely recreate the body?
I've got no problem with recreating the body (in fact I think I'd prefer that solution) but I don't know if Box2d keeps the old body around somewhere. Should I call DestroyBody on it or just forget about it?
Thanks in advance.
EDIT: Ok, figured it out. Have to call DestroyBody and recreate. Not sure if the "set XForm" solution can be worked out but I'm not going that route anyway.
I've got no problem with recreating the body (in fact I think I'd prefer that solution) but I don't know if Box2d keeps the old body around somewhere. Should I call DestroyBody on it or just forget about it?
Thanks in advance.
EDIT: Ok, figured it out. Have to call DestroyBody and recreate. Not sure if the "set XForm" solution can be worked out but I'm not going that route anyway.