Sharing shapes

figgles
Posts: 3
Joined: Wed Dec 09, 2009 7:31 am

Sharing shapes

Post by figgles »

Is it legal for two btDiscreteDynamicWorlds to safely share the same shape if each world is executed on a different CPU? My understanding is that shapes can be shared among multiple rigid bodies, so I was wondering if that applied when sharing the shape across multiple rigid bodies in different worlds.

Patrick
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Sharing shapes

Post by Erwin Coumans »

It is fine to share collision shapes among objects in different worlds, even if those worlds are process/updated in parallel. If you run into problems, please let us know.

Thanks,
Erwin