Question by
treblafreeman · Jan 26, 2021 at 07:44 PM ·
raycast
Block raycast Y position
So I have this raycast that follows the player anywhere he is. But I want to block the Y position, so it doesn't look up and down. And idk how to do it. I want to keep it following the player but only on the X and Z.
47841006d32d165a836140886fc98b2a.png
(390.7 kB)
Comment
Your answer
Follow this Question
Related Questions
RayCast Rotation 1 Answer
Using raycast to collect resources 0 Answers
Rigidbody2D and Raycasting. Good practice? 0 Answers
Debug.DrawRay isn't working at all 1 Answer
Really need some help with my bullets firing opposite and not following rotation. 0 Answers