- Home /
How can I determine how many colliders exist along a line?
Is there any way for me to determine how many colliders exist along a line? Physics.Raycast lets me know if a ray hits one collider, but what I want is something that lets me know how many colliders a ray collides with in total.
Comment
Answer by robertbu · Apr 01, 2013 at 02:35 AM
See: Physics.RaycastAll(). It returns an array of hits rather than a boolean value.
Your answer
Follow this Question
Related Questions
Someone can help with Ray/Collide? 1 Answer
Fast object on collider not working 1 Answer
Raycast goes through collider 2 Answers
Raycast goes through 1 Answer