
I have a dynamic rigid body sphere that the player controls (through forces). I want the player to be able to toggle whether or not the sphere bounces off surfaces. It seems to me that I need to be able to change the restitution of its btRigidBody, but from what I can tell this isn't possible. Restitution is set once in the btRigidBody CI and not available to modify later.
Is there some other way to fake this effect or will I have to do something like create two rigid bodies and swap them out when the user toggles the 'bouncy' mode?