i been exploring the codes here for embedding the "blue object" into another vernier calipers applet.
i am puzzled how u make the blue object push the right internal jaw on both move together.
i can't locate the code for that "behavior".
chance to advise? thanks!
reference your codes under fixed constraints:
if(ox < oxmin+w/2)ox=oxmin+w/2;
else if(ox > x+w)ox=x+w;
xdmin = ox+d+w/2;
if(oy > oymin && x < xdmin) x=xdmin;
if(x < x1)x=x1;
else if(x > x2)x = x2;
and the blue object has no code ON DRAG;
how is "the blue object push the right internal jaw on both move together" done?