Can I add 1 rigid body into 2 different worlds?

Can I add 1 rigid body into 2 different worlds?

if the rigid body is fixed.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi ixnehc,

You can't have the same rigid bodies in 2 worlds. A rigid body has at the very least a pointer back to the world it is in and will assert if you try to add it to a different world. That being said, a rigid body by itself has little memory overhead (about 640 bytes). Most of the memory is going to come from the hkpShape associated with it. You should be able to share the shape data however since that is pretty agnostic to what is using it.

Thanks,
Sean

Developer Support Engineer Havok www.havok.com

Login to leave a comment.