我一直在进行一场血清巨大的模拟,这意味着它成为动物和动物的必备条件。
I found a good working script but when the simulation got bigger I found it had a problem... The more you zoom in, the smaller the steps became and the further you zoom out, the bigger.
This is a problem because I need the steps to be equal no matter what zoom level you are.
现在使用的文字Im是:
var total = 75,
delta = e.detail ? e.detail * -120 : e.wheelDelta; //e is mouse event
this.zoomValue += (delta > 0) ? 1 : -1;
this.zoomRatio = 1 + (this.zoomValue / total) * 2;
e.preventDefault();
http://clanpvp.com/sol“rel=“nofollow”http://clanpvp.com/sol。 (如果它不工作,我要么干扰它,要么你正在使用因特网探索者)
我在后来用苏马洛计算各种物体的位置。
谁知道如何以更好的方式去干活?