Question by
migueeel · Jun 14, 2017 at 12:03 AM ·
distanceradiusspherecast
Avoid spherecast from shrinking over distance / find withing screenspace
Because how SphereCast works, it becomes smaller on your screen as the distance increases. I'm trying to find enemies within a part of my screen (around the crosshair) but I can't find any info on how to accomplish this. I would preffer a direct "check in screen" method, but Spherecast works great because it detects the first object it hits.
Comment
Your answer
Follow this Question
Related Questions
Checking for GameObjects within a set distance of another GameObject 1 Answer
How to get a list of the closest distance targets with NavMesh. 0 Answers
Using the Distance Bands from the CullingGroup API correctly 1 Answer
look at closer 1 Answer
Figuring out positions within a distance between two points. 1 Answer