- #1
Zalokin
- 6
- 1
Hi There!
I am quite a beginner at physics and my aim is to apply physics to a computer program which I'm coding.
The program consists of 2 balls of equal mass colliding into each other and demonstrating the trajectories after an elastic collision.
I have already coded a more basic model consisting of a ball in motion striking a static ball - https://zalokin78.github.io/ballCollision3/
I researched and implemented the Law of Conservation of Momentum, after I watched the following video on YouTube: -
I am now at a stage that I want to include motion for both balls (rather than one ball in motion and the other one static as in my current stage).
Therefore, both balls would be situated in random locations and set their trajectories to collide against each other at different velocities.
This means that I suppose that this requires more calculations because the angles of trajectory and velocities would affect both balls, depending on their initial velocities and point of collision.
I have researched online for about a week now, but I am struggling to find videos etc how this works.
There are various variables which are already known :-
Initial angles of trajectory (for BallA and BallB)
Initial velocities of trajectory (for BallA and BallB)
Both balls are of equal mass (for simplification - 1kg)
Angle of the centers of balls at point of collisionI need to calculate: -
Final velocities after collision (for BallA and BallB)
Final angles after collision (for BallA and BallB)I am aware that this could require 2 laws: -
Law of Conservation of Momentum
Law of Conservation of Kinetic Energy
I would be extremely grateful for some sort of guidance, to help me understand this or perhaps steer me through certain contents online that can help me to complete my programming project.
Thank you!
I am quite a beginner at physics and my aim is to apply physics to a computer program which I'm coding.
The program consists of 2 balls of equal mass colliding into each other and demonstrating the trajectories after an elastic collision.
I have already coded a more basic model consisting of a ball in motion striking a static ball - https://zalokin78.github.io/ballCollision3/
I researched and implemented the Law of Conservation of Momentum, after I watched the following video on YouTube: -
I am now at a stage that I want to include motion for both balls (rather than one ball in motion and the other one static as in my current stage).
Therefore, both balls would be situated in random locations and set their trajectories to collide against each other at different velocities.
This means that I suppose that this requires more calculations because the angles of trajectory and velocities would affect both balls, depending on their initial velocities and point of collision.
I have researched online for about a week now, but I am struggling to find videos etc how this works.
There are various variables which are already known :-
Initial angles of trajectory (for BallA and BallB)
Initial velocities of trajectory (for BallA and BallB)
Both balls are of equal mass (for simplification - 1kg)
Angle of the centers of balls at point of collisionI need to calculate: -
Final velocities after collision (for BallA and BallB)
Final angles after collision (for BallA and BallB)I am aware that this could require 2 laws: -
Law of Conservation of Momentum
Law of Conservation of Kinetic Energy
I would be extremely grateful for some sort of guidance, to help me understand this or perhaps steer me through certain contents online that can help me to complete my programming project.
Thank you!