Opposite Force to Apply to a Collided Rigid Body?
- by Milo
I'm working on the physics for my GTA2-like game so I can learn more about game physics.
The collision detection and resolution are working great.
I'm now just unsure how to compute the force to apply to a body after it collides with a wall.
My rigid body looks like this:
/our simulation object
class RigidBody extends Entity
{
//linear
…