2 dimensional collision modeling

  • Context: Graduate 
  • Thread starter Thread starter Yaridovich
  • Start date Start date
  • Tags Tags
    Collision Modeling
Click For Summary
SUMMARY

This discussion focuses on the complexities of modeling 2-dimensional collisions in physics simulations. Key principles include the conservation of horizontal and vertical momentum, kinetic energy, and angular momentum. The user seeks to determine post-collision velocities and angular velocities for two colliding objects, utilizing equations that account for mass and initial velocities. The discussion highlights the importance of collision duration and the effects of kinetic and static friction on energy transfer and angular momentum during collisions.

PREREQUISITES
  • Understanding of conservation laws in physics, specifically momentum and energy conservation
  • Familiarity with angular momentum and moments of inertia
  • Basic knowledge of collision types, particularly elastic collisions
  • Experience with 2D physics simulations and mathematical modeling
NEXT STEPS
  • Research "2D physics simulation libraries" such as Box2D or Chipmunk
  • Study "collision response algorithms" to handle multiple object interactions
  • Explore "torque and angular momentum calculations" in elastic collisions
  • Investigate "kinetic vs. static friction" effects in collision scenarios
USEFUL FOR

Game developers, physicists, and engineers involved in creating realistic 2D simulations, particularly those focused on collision dynamics and energy transfer.

Yaridovich
Messages
5
Reaction score
0
I have been working on making a 2-dimensional physics simulation on my computer and am having a bit of trouble with collisions. I know that:

-horizontal momentum is conserved
-vertical momentum is conserved
-kinetic energy (both rotation and translational) is conserved (assuming elastic collision)
-angular momentum is conserved

I have also created another equation that determines the angle at which the objects are deflected. That leaves me with 5 equations, but I need to know:

-horizontal velocity after collision (for both objects)
-vertical velocity after collision (for both)
-angular velocity (for both), which leaves me with 6 unknowns.

How else can I relate these variables so that I can solve for them explicitly?
 
Physics news on Phys.org
You want to solve the following:

Let [tex]v_1[/tex] and [tex]u_1[/tex] be the velocities before the collision. [tex]v_2[/tex] and [tex]u_2[/tex] are the velocities after the collision. [tex]m[/tex] and [tex]M[/tex] are the masses of the objects.

Solve the following for motion in both x and y:

[tex]mv_1+Mu_1=mv_2+Mu_2[/tex]

[tex]v_1+v_2=u_1+u_2[/tex]

Angular velocities are more comlpcated and depend on the shapes of the objects, where and from what angle the collision happens, but the conservation law is:

Let [tex]\alpha_1[/tex] and [tex]\beta_1[/tex] be the angular velocities before the collision. [tex]\alpha_2[/tex] and [tex]\beta_2[/tex] are the angular velocities after the collision. [tex]i[/tex] and [tex]I[/tex] are the moments of inertia of the objects about their centres of mass.

[tex]i\alpha_1+I\beta_1=i\alpha_2+I\beta_2[/tex]
 
The parameter you are missing is duration of the collision. Without it, you cannot gauge how much energy goes into rotation.

In a perfectly elastic instant collision, no rotation is transfered*, so both objects will keep angular momentum. But I'm sure that's not what you want. A more realistic collision has a finite duration, and the angular momentum transferred is basically given by torque from kinetic friction at point of collision over the duration of collision, but no more than needed fore angular velocities to match. You'll have to figure out what that does in terms of energy loss, of course, as well as momentum transfer in tangential direction.

Then you have a headache of figuring out how much of the duration was spent in kinetic friction and how much in static friction modes.

All that headache, plus a lot of problems with many-body-collisions is the main reason people usually don't do that in simulation. Instead, they compute actual forces acting on body at every step of the simulation, each collision taking up a significant number of steps. That way you can always check if you have kinetic or static friction, account for energy losses directly, and not be in any sort of trouble if object collided with two others at once.

* I assumed circular boundary here. For a general boundary, you'll have angular momentum exchange even in perfectly elastic collision, of course, but you shouldn't have trouble computing that.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 53 ·
2
Replies
53
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K