I'm writing a program that simulates circular

Click For Summary
SUMMARY

This discussion focuses on simulating circular particles in 2D space, specifically addressing collision handling. The key to determining the angle of each particle's velocity post-collision lies in understanding the type of collision—elastic, inelastic, or partially elastic. The resolution of velocity vectors along the common normal (line of impact) is crucial, where perpendicular velocities remain unchanged, while momentum conservation applies to parallel velocities. The coefficient of restitution equation is essential for calculating the velocities along the common normal.

PREREQUISITES
  • Understanding of 2D physics simulations
  • Knowledge of collision types: elastic, inelastic, partially elastic
  • Familiarity with vector mathematics and resolution
  • Concept of coefficient of restitution in physics
NEXT STEPS
  • Research the mathematics of momentum conservation in collisions
  • Learn about the coefficient of restitution and its applications
  • Explore vector resolution techniques in 2D space
  • Study different types of collision response algorithms
USEFUL FOR

Game developers, physics simulation engineers, and anyone involved in programming collision detection and response in 2D environments.

AndrewM16921
Messages
2
Reaction score
0
I'm writing a program that simulates circular "particles" in 2d space. I'm at the collision handling part. I've already corrected their positions when an overlap occurs. So, my question is, how do I determine the angle of each particle's velocity after the collision? I have the position and velocity vectors of both particles, so I can easily calculate the angle each particle is moving in before the collision and the angle from one particle toward another.
http://nubcraft.org/stuff/img/collide.png
Thanks for any help.
 
Last edited by a moderator:
Physics news on Phys.org


First of all it depends on the type of collision ..whether it is elastic, inelastic or partially elastic...The velocity vectors of both the balls ( for ex.) can be resolved in a direction perpendicular and parallel to the common normal or what we call line of impact of both balls...IN CASE if u have confusion about common normal or line of impact :Common normal is a line that passes through the center of both the balls and is perpendicular to the points of contact of the circles...
The velocities perpendicular to the Common normal or line of impact will remain same as before for both the balls ...No changes for both of them ...

Now conserve the momentum (along the common normal) for the velocities parallel to the common normal ...

To get these velocities u need 1 more equation that is the equation of coefficient of restitution ...
e= velocity of separation ( along common normal ) / velocity of approach (along common normal)..

U have 2 eqns solve them get the answer...

Sorry, for the long answer...
I hope this will help..
 


Looks like just the answer I was looking for. Thanks, I will try it out. :)
 

Similar threads

  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 58 ·
2
Replies
58
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 9 ·
Replies
9
Views
1K