A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: need help calculating point based on angle

  1. #1

    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

  2. #2
    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));
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center