Hey,
Is there a way to check, if a ray has failed to hit anything with SpuBatchRaycaster?..
I see in ClosestRayResultCallback there is hasHit() function, which checks whether a ray has hit any object.
But I'm not sure how to do the same check with SpuBatchRaycaster....
SpuBatchRaycaster question
-
- Posts: 133
- Joined: Wed Jul 27, 2005 1:05 pm
- Location: Berkeley, CA
Re: SpuBatchRaycaster question
Yes, You can look at the hit parameter.
hasHit = (workUnit.hitFraction < 1.0);
HTH,
John
hasHit = (workUnit.hitFraction < 1.0);
HTH,
John