this should be simple enough, but I’m so knee deep in cos and sin and atan right now, I just can’t quite get this:
Have a ball - it may be located anywhere in the black bounding box.
I generate a random angle - well its not totally random, the angle is generated from the balls x,y position through the centerpoint of the black bounding box.
I need to know the x,y intersect of that invisible (green angled) line on the bounding box.
A formula would be highly appreciated, thanks!