SpuBatchRaycaster question

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

SpuBatchRaycaster question

Post by sandeep_slash »

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....
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: SpuBatchRaycaster question

Post by John McCutchan »

Yes, You can look at the hit parameter.

hasHit = (workUnit.hitFraction < 1.0);

HTH,
John