Calculating Ball Speed and Direction After 2D Collision: Game Programming Tips

  • Context: Undergrad 
  • Thread starter Thread starter Cruncher
  • Start date Start date
  • Tags Tags
    Collision Momentum
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
Cruncher
Messages
5
Reaction score
0
Okay this is a question about after two balls collide knowing their speeds and directions and mass before collision, what is their speed and direction after collision in two dimensional space.


more specifically i need to know this because i am programming a game in which i need accurate ball behavior so, assuming collision occurs at the origin, and ball one comes from x degrees and ball 2 comes from x degrees, and i know their speeds, and can make up a mass for them based on their size,

how do i figure out their direction and speed? also note that at this point i am ignoring friction or anyother outside forces, but that will change in later development

thanks for any help and guidance you could give me

Cruncher,
 
Physics news on Phys.org
You need to use the equation for collisions. I don't know whether in your case it is elastic or inelastic. Write an equation for each dimension, one for all momentum in the x direction and one for all the momentum in the y direction.
 
it is not elastic, it is as though 2 billiard balls hit each other.. do you know where i could find these equations? thanks

Cruncher