Feb 212011
ballShapeDef.density = 1.0f; //Mass, the more mass it has, and the harder it is to move.
ballShapeDef.friction = 0.2f;//is a measure of how hard it is for objects to slide against each other. This should be in the range of 0 to 1. 0 means there is no friction, and 1 means there is a lot of friction.
ballShapeDef.restitution = 0.8f; //is a measure of how “bouncy” an object is. This should usually be in the range of 0 to 1. 0 means the object will not bounce, and 1 means the bounce is perfectly elastic, meaning it will bounce away with the same velocity that it impacted an object.