Hi all.
Looking for a bit of advice really.
What I'm doing is casting a ray (using a point and direction) and I want to know the first polygon that the ray hits in the scene (thousands of polys).
Do I: Create a list of all the polys that the ray intersects with and build like a z-list to find the nearest poly?
OR
Is there a simpler way?
Many thanks
Looking for a bit of advice really.
What I'm doing is casting a ray (using a point and direction) and I want to know the first polygon that the ray hits in the scene (thousands of polys).
Do I: Create a list of all the polys that the ray intersects with and build like a z-list to find the nearest poly?
OR
Is there a simpler way?
Many thanks