- Home /
This post has been wikified, any user with enough reputation can edit it.
Can Raycast get multiple points from the same collider?
How would I "raycast" through an object and get all the points the cast hit? While ignoring
the backside culling.
check.jpg
(12.8 kB)
Comment
You can also cast multiple rays, and every time a collider is hit, disable this collider for the duration of your raycasting.
The point is to get multiple collisions on the one collider though Cherno.
Best Answer
Answer by Benjames · Oct 13, 2013 at 07:15 PM
I checked it and it seems like a simple and effective enough method.
Instead of RaycastAll I use Raycast multiple times. Stop at each collision, store data, then cast again from the current collision point. This will allow me to retrieve each collision point along a ray.