Question by
ryhime100111 · May 04, 2020 at 12:59 AM ·
rotationpointslinecast
Find if a gameObject is between two points while rotating in 2d,Find if a gameObject is between two points while rotating
I have two circles that rotate. The player rotates around the first circle. When the player is between the center of first circle and the center of the second circle the first circle needs to stop rotating. I have been trying everything including using Vector3.normalized (for direction) and Physics2d.linecast but they don't work because the z rotation on the player is increased by a random number every frame so it can pass through the center line. I would appreciate the help. ,
Comment
Your answer
Follow this Question
Related Questions
How to Calculate Rotation with Points Position not using transform 0 Answers
Linecast with transforms rotation? 0 Answers
Rotating Vector3, linecast 1 Answer
Raycast2D 360 Rotation 0 Answers
copy rotation script doesent copy the full 360 degrees? 0 Answers