Thread
:
Simple Poly Line (to mouse)
View Single Post
#
16
01-06-2011, 01:42 AM
cbk1994
the fake one
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
It's in radians, not degrees.
PHP Code:
this
.
angle
=
random
(
this
.
angle
-
0.261
,
this
.
angle
+
0.261
)
Google "# degrees to radians" if you need help converting.
You can also use degtorad but it's not recommended to use degrees in scripting anyway.
__________________
cbk1994
View Public Profile
View GraalOnline Profile
Visit cbk1994's homepage!
Find all posts by cbk1994