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?
btMultiSphereShape scaling and sharing
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: btMultiSphereShape scaling and sharing
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
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