Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Physics
Classical Physics
Mechanics
Understanding Physics for Coding Collision of 2 Balls
Reply to thread
Message
[QUOTE="Zalokin, post: 6868782, member: 734596"] Thanks for the reply. Yes, I do understand what you've explained. I actually already implemented what you mentioned for my existing code of one moving ball hitting a static one. In the background, the angle of the hitting ball is set for a 0 degree angle trajectory towards the static ball to work out the final velocities and then rotated back for the proper visual representation. But my question was more to do with the calculations of the velocities and angles themselves, not at a programming standpoint - more of a physics/ mathematical question.To further explain my dilemma: - In my last example, the final angles were easy to predict - imagine drawing a line between the centers of both balls at moment of impact (let's name the angle of the line theta). The hitting ball would travel theta +/- 90 degrees theta. The static ball being hit travels at the angle theta. Simple as that. The fact that now both balls are in motion at different angles and velocities introduces another factor - the final angles would not follow the same simple principal as above. The angles would vary depending on the initial velocities/ initial angles of both balls. I'm just stuck at this point not knowing how to calculate the final angles and final velocities. P.S. Note that this is a simple elastic system - the system does not cater for frictional forces etc. [/QUOTE]
Insert quotes…
Post reply
Forums
Physics
Classical Physics
Mechanics
Understanding Physics for Coding Collision of 2 Balls
Back
Top