I'm going to start over from the beginning. Get a random point within the map and push out another point at some random angle and distance. I will make fans of clickable triangle divs around that initial center point...
Initial Angle: 3.57
X0: 173, Y0: 99
X1: 114, Y1: 71
Atan2 Angle: 3.58
Current Angle: 4.11
X2: 136, Y2: 45
polygon(173px 99px, 114px 71px, 136px 45px)
Previous Angle: 2.2730532583039036 Following Angle: 0.9700825434839029
No comments:
Post a Comment