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

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   : http://www.freelists.org/archives/ascoders/
Optionen : http://www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: