03/08/20 00:14
>>293
どういう軌跡かにもよると思うけど。
だんだん近づくとか
this._x += ( this._parent._xmouse - this._x ) / 10;
this._y += ( this._parent._ymouse - this._y ) / 10;
びよんびよんするとか
this._x += this.xspeed = ( this.xspeed + ( this._parent._xmouse - this._x ) * .3 )*.9;
this._y += this.yspeed = ( this.yspeed + ( this._parent._ymouse - this._y ) * .3 )*.9;
その方向にすすむとか
r = Math.atan2( this._parent._ymouse - this._y , this._parent._xmouse - this._x );
this._x += Math.cos(r)*10;
this._y += Math.sin(r)*10;
はずしてたらすまん