- Home /
How to identify multiple objects in a sphere cast?
Hi, I am trying to implement a RADAR sensor in unity. I am currently using sphere cast to identify the object and measure its velocity and distance. At the moment even though there are several objects in within the radius of the sphere cast ,It only identifies the nearest one. How can i make it recognize all the objects within the sphere cast.?
Any help would be appriciated..
Answer by poisoned_banana · Apr 22, 2018 at 06:12 PM
Use Physics.SphereCastAll which will return a RayCastHit[] instead of a single RayCastHit
Your answer
Follow this Question
Related Questions
Manuals Sphere collison 0 Answers
Raycast Never Hits Anything?! 2 Answers
Physics.SphereCast with Vector3.Reflect returns weird results 1 Answer
Unity SphereCast - Getting the center of the last sphere before the hit 2 Answers
Spherecast. Want to determine how close to the center of the sphere the collision occurred. 0 Answers