Take the 2-minute tour ×
Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. It's 100% free, no registration required.

I'm trying to create a simplified GTA 2 clone to learn. I'm onto vehicle collisions physics. The basic idea I would say is, To apply force F determined by vehicle A's position and velocity onto point P on vehicle B. But what should that do exactly? My vehicles have a center position and an angle, but I'm not sure what something like that applied force should do? How could I determine the new center and angle of the vehicle after the hit?

It doesn't have to be realistic, just something that would get the job done would be appreciable...

share|improve this question
    
I assume besides position and angle, you store velocity and yaw rate also? It is really those two you need to worry about with collisions. –  ja72 Oct 11 '12 at 21:59
    
What physics engine are you using? –  Sachin Shekhar Dec 21 '12 at 4:44
add comment

1 Answer

Well, I think you could get physically correct (i.e. realistic) for the same effort, so why not?

I've written a few hard body collision simulations back when I was an undergrad. A simple approach is to write down the equations of motion for the cars, both the linear and the angular, and solve for the impulse (i.e. the change in linear momentum) that is transferred between them. If you already have a collision check algorithm that tells you the point of contact between the two when they collide (which would be straight-forward to implement), then that and the impulse above completely determine the outcome of the crash.

You can read more about this solution here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.