[ascoders] Re: Rotation nach Mausposition *gedämpft*

  • From: André Michelle <ascoders@xxxxxxxxxxxxxxxxxx>
  • To: <ascoders@xxxxxxxxxxxxx>
  • Date: Wed, 13 Oct 2004 21:35:32 +0200

probier mal:

this.rpos = (this.rpos*0.6)+((r-this._rotation)*0.2);
while( this.rpos > Math.PI ) this.rpos -= Math.PI*2;
while( this.rpos <-Math.PI ) this.rpos += Math.PI*2;
this._rotation += this.rpos

--
aM

------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: