home *** CD-ROM | disk | FTP | other *** search
- set("hc:vx",(eval("hc:vx") + eval("control:x_value") - eval("hc:x_value")) * "1" / a / b);
- set("hc:vy",(eval("hc:vy") + eval("control:y_value") - eval("hc:y_value")) * "1" / a / b);
- set("hc:x_value",eval("hc:x_value") + eval("hc:vx"));
- set("hc:y_value",eval("hc:y_value") + eval("hc:vy"));
- set("control:x_value",getProperty("control/", _X));
- set("control:y_value",getProperty("control/", _Y));
- oldX = getProperty("hc/", _X);
- newX = getProperty("control/", _X);
- rot = (newX - oldX) / "1.5";
- if("60" < rot)
- {
- rot = "60";
- }
- if(rot < - "60")
- {
- rot = - "60";
- }
- setProperty("hc", _X, eval("hc:x_value"));
- setProperty("hc", _Y, eval("hc:y_value"));
- setProperty("hc", _rotation, rot);
-