0
votes
3answers
151 views

Why does my gravity simulation do this? [closed]

For a school project i created a simple 2D gravity sim in Matlab using the simplest possible method. There are 2 nested loops so that the total force and acceleration of every object can be ...
2
votes
2answers
212 views

How to calculate velocities after collision?

I'm currently writing a program for a particle simulator. One of the requirements is that the particles collide in a realistic way. However, I don't know how to calculate the final velocities. For ...
2
votes
1answer
274 views

How to get the new direction of 2 disks colliding?

I'm developing a 2D game including collisions between many disks. I would like to know how I can get the angle corresponding to the new direction of each disk. For every disk I have this information ...
3
votes
1answer
457 views

Simple 2D Vehicle collision physics

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 ...