btMultiSphereShape scaling and sharing

O-san
Posts: 19
Joined: Mon May 11, 2009 8:46 am

btMultiSphereShape scaling and sharing

Post by O-san »

I got two questions regarding btMultiSphereShape.

Is it possible to scale individual spheres within a btMultiSphereShape after the rigidbody has been created?

If it is possible to scale them, is the scaling performed on all bodies that share the shape?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: btMultiSphereShape scaling and sharing

Post by Erwin Coumans »

Yes, you should be able to change the scale (radius) of individual spheres in a btMultiSphereShape.

Yes, all bodies will be updated if they share the same shape. Just make sure to manually activate the rigid bodies if they were sleeping, so that the AABB is updated etc.
Thanks,
Erwin