how am I suppose to apply friction to an object so that when I apply force it decelerates eventually to zero? Here are my physics objects:
Rigid Body "Sphere"
- Collision shape: btSphereShape(0.50)
- Mass: 1.0 kg
- Restitution: 0.5
- Friction: 10.0
Rigid Body "Platform"
- Collision shape: btBoxShape( btVector3(23.0, 0.5, 23.0) )
- Mass: 0.0 kg
- Restitution: 0.75
- Friction: 1.0
I apply central force of btVector3(0,0,-100) on key press 'W' to the sphere. The sphere moves but never stops. Is there anything else I should take into consideration? The sphere is not rolling (the force is to the center) and the damping cannot be used because it slows the object down on any force, even gravity.
What I have tried:
Added mass to the platform. I set linear and angular factors to (0,0,0) so the platform didn't move by any applied force.
Applied the negative of the total applied force. I get a working result but not how I wanted. If I had friction the object would slow down more realistically