What is the correct collision formula in this scenario?

  • #1
I am working on a simple space game, and I am having trouble figuring out how to do collisions correctly; things bounce in the wrong direction or just get stuck together. Here are the things that are given:
  • Direction of objects A + B in degrees
  • Speed of objects A + B in meters per second
  • Mass of objects A + B in kilograms
  • The material of A + B (any properties of that material)
The collision is in two dimensions, and it is not always going to be head on. What is the formula that I need to simulate the objects colliding?

On a related note: how would I calculate if the objects should spin due to the collision?
 

Answers and Replies

  • #3
Thanks! I had been looking for something like that for days. I'll post back here if I have any other problems.

UPDATE:
329679.image1.png

if I use this and break the final velocities into their x and y components, would I get the desired result?
 
Last edited:

Related Threads on What is the correct collision formula in this scenario?

Replies
6
Views
794
Replies
6
Views
2K
Replies
6
Views
11K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
2K
Replies
11
Views
3K
Replies
7
Views
548
  • Last Post
Replies
4
Views
7K
  • Last Post
Replies
9
Views
4K
  • Last Post
Replies
0
Views
1K
Top