Thread: Rotating?
View Single Post
  #6  
Old 01-13-2008, 09:42 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
player.+= cos(this.ang);
player.-= sin(this.ang); 
:O
and this.ang should be between 0 and pi*2
(if you're not into trig you can just use degtorad() to convert radians to degrees (for example: degtorad(360); degtorad(145); etc.) )
__________________
Reply With Quote