-
need help calculating point based on angle
Does anyone know how to find out what x is in the picture above. I've been trying for hours to figure it out but I'm apparently a math idiot!
Any help would be much appreciated
-
I found out the answer so here it is in case anyone else needs help. I yanked the image from my server and attached it...
var ballXend = ballXstart + ((ballYstart-ballYend) * Math.tan(aimAngle/180*Math.PI));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|