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

AI Thread Summary
To calculate the speed and direction of two balls after a 2D collision, one must apply the principles of momentum conservation. The equations for both the x and y dimensions should be established to account for the velocities of both balls before the collision. The discussion highlights the importance of determining whether the collision is elastic or inelastic, with a focus on billiard ball-like behavior. Resources such as Wikipedia provide equations for elastic collisions, which may be relevant depending on the game's mechanics. Accurate ball behavior in the game can be achieved by implementing these calculations while considering future adjustments for friction and other forces.
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
 
Thread 'Is 'Velocity of Transport' a Recognized Term in English Mechanics Literature?'
Here are two fragments from Banach's monograph in Mechanics I have never seen the term <<velocity of transport>> in English texts. Actually I have never seen this term being named somehow in English. This term has a name in Russian books. I looked through the original Banach's text in Polish and there is a Polish name for this term. It is a little bit surprising that the Polish name differs from the Russian one and also differs from this English translation. My question is: Is there...
I know that mass does not affect the acceleration in a simple pendulum undergoing SHM, but how does the mass on the spring that makes up the elastic pendulum affect its acceleration? Certainly, there must be a change due to the displacement from equilibrium caused by each differing mass? I am talking about finding the acceleration at a specific time on each trial with different masses and comparing them. How would they compare and why?

Similar threads

Replies
9
Views
2K
Replies
4
Views
2K
Replies
3
Views
779
Replies
3
Views
2K
Replies
13
Views
3K
Back
Top