I'm currently in the making of a small c++ simulation program and, as I am very new to physics, I am struggling with what seems to be a simple 2D collision handling problem. I spent quite some time thinking about it and looking at tutorials but I just don't really get it. Here is my problem :
One point (P) is colliding a (weightless) line attached to two other points (A and B).
P
, A
and B
each have a specific velocity
(Vp
, Va
, Vb
) at the time of the collision and they have their own weight
(Wp
, Wa
, Wb
).
I know the exact coordinates of the collision (C) and all I want to know is how I need to modify the velocity for each of these 3 points. At the moment, I try to consider the impact point as a ball (I compute its velocity as Vc=Va*(1-||AC||/||AB||)+ Vb*(||AC||/||AB||)
but I'm not sure if that is a correct approach and then I'm stuck at computing its mass).
Any help, hint or resource would be greatly appreciated. Here is a small diagram I made for explaining the problem.