Thread
:
Rotating?
View Single Post
#
14
01-13-2008, 09:42 PM
Chompy
¯\(º_o)/¯
Join Date: Sep 2006
Location: Norway
Posts: 2,815
PHP Code:
player
.
x
+=
cos
(
this
.
ang
);
player
.
y
-=
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.) )
__________________
Chompy
View Public Profile
View GraalOnline Profile
Find all posts by Chompy