EJS 2D collision with angles by author: Fu-Kwun Hwang, edited by Wolfgang Christian and Robert Mohr very slightly edited by lookang (just added angles)

http://weelookang.blogspot.sg/2011/05/ejs-open-source-2d-collision-model-java.html http://weelookang.blogspot.sg/2014/05/ejs-2d-collision-with-angles.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollisionwee.jar older https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollision.jar author: Fu-Kwun Hwang, edited by Wolfgang Christian and Robert Mohr very slightly edited by lookang |

http://weelookang.blogspot.sg/2011/05/ejs-open-source-2d-collision-model-java.html http://weelookang.blogspot.sg/2014/05/ejs-2d-collision-with-angles.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollisionwee.jar older: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollision.jar author: Fu-Kwun Hwang, edited by Wolfgang Christian and Robert Mohr very slightly edited by lookang |

http://weelookang.blogspot.sg/2011/05/ejs-open-source-2d-collision-model-java.html http://weelookang.blogspot.sg/2014/05/ejs-2d-collision-with-angles.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollisionwee.jar older https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_model_ElasticCollision.jar author: Fu-Kwun Hwang, edited by Wolfgang Christian and Robert Mohr very slightly edited by lookang |

based on a request by

Dear Prof.Lookang

I would like to adjust (besides the position and mass values of the two bodies) the angle at which velocities are directed. For example, m1 moves parallel to x-axis. M2 moves at 30 degrees to the horizontal, with total momentum parallel to x-axis zero.

Or you may please send me the simulation corresponding to the following conditions:

One mass (say 1kg) moves along x-axis to the left with say 5m/s. the second mass moves with its velocity component along x-axis (to the right) equal to 5mkg/s and a finite value (non-zero) of velocity component in the direction of y-axis. The total momentum along x-axis is zero before and after the collision. The total momentum of the masses is in the y-axis direction before and after the collision.

Yours Sincerely

P. Radhakrishanmurty

Dear Prof. Lookang Lawrence Wee'

Thanks for the reply.

I saw this simulation already. But there is no way I can adjust or choose the angle for the direction of velocities. Though I can rotate the velocity vector arrow, I will not know the angle. For example, when I choose the mass I know the value, say 2 kg, or 1 kg etc. Similarly if I know the angle say 30 degrees, 40 degrees etc. it helps to define the velocity.

I like to simulate this experiment: Two unequal masses approache each other at a certain angle. They have equal values of momenta with opposite signs along the direction of motion of one of the masses. After collision, they move away from each other such that one of the masses reverses its velocity and the other moves along a line parallel to the direction of the initial velocity vector reflected in the mirror placed along the direction of motion of the first body.

Yours Sincerely

P. Radhakrishnamurty

M_1= 1, X_1 = -60, Y_1= -69.28, V_1 = 80, theta 1 = 60 degree M_2= 2, X_2 = 30, Y_2 = 0, V_2 = 20, theta 2 = 180 degree. |

M_1= 1, X_1 = -60, Y_1= -69.28, V_1 = 80, theta 1 = 60 degree M_2= 2, X_2 = 30, Y_2 = 0, V_2 = 20, theta 2 = 180 degree. |