HelpPlease
New member
- Joined
- Sep 2, 2015
- Messages
- 1
Hello!
I've drawn a little illustration to better explain my problem!
So I have 2 given points (P0, P1), the radius of the circle and I have the angle between the 2 points. I'd like to cast a ray from P0 to Px. Px would always be on the edge of the square inbetween the line given by P0 and P1.
My question how can I calculate Px point before casting the ray to make the raycast's length shorter to avoid uneccessary intersection checks.
Fyi the P1 point could be anywhere around the circle outside of the square.
I've drawn a little illustration to better explain my problem!
So I have 2 given points (P0, P1), the radius of the circle and I have the angle between the 2 points. I'd like to cast a ray from P0 to Px. Px would always be on the edge of the square inbetween the line given by P0 and P1.
My question how can I calculate Px point before casting the ray to make the raycast's length shorter to avoid uneccessary intersection checks.
Fyi the P1 point could be anywhere around the circle outside of the square.