Hi Prof Hwang and Ejs community,

how to make the mass m dragable n the world view in circular motion?

i seems to have encounter a problem which i need someone else to discuss with to understand why the mass cannot be drag.

in the fixed relation
x=R*Math.sin(cta);
y=R*Math.cos(cta); // jamming the on drag codes


in the object m
on drag i added these codes to execute when drag.
cta = Math.atan2(y,x);
R = Math.sqrt(x*x+y*y);
_initialize();

i don't see anything wrong with the method i used to make the mass m execute
cta = Math.atan2(y,x);
R = Math.sqrt(x*x+y*y);
but it does not work.

the remixed work is here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1892.0

/htdocs/ntnujava/ejsuser/14019/users/sgeducation/lookang/circularvwee02trymassdrag_pkg/circularvwee02trymassdrag.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1331.9kB):double click downloaded file to run it. (2 times by 2 users) , Download EJS source (1 times by 1 users) View EJS source