|
|
Hi,
I'm trying to play with RayCasting.. In RayCastSingle I have no problem:
RaycastHit raycastHit = ActiveScene.RaycastSingle(ray.Position, ray.Direction, 1000, SceneQueryFlags.Impact);
but when I trying RayCastMultiple, I receive null object every time:
RaycastHit[] rayBuffer = ActiveScene.RaycastMultiple(ray.Position, ray.Direction, 1000, SceneQueryFlags.Impact, 10);
Did I something wrong or this can be error in wrapper?
Thanks,
Tom
|
|
Coordinator
Jan 17 at 7:07 AM
|
Hey,
I've checked in a fix for Scene.RaycastMultiple, the code in that function had never been tested and was a little off. The function could still do with some work though to incorporate blockingHits and cache, but what's there should be enough for now.
It returns the hit objects in an array, or null if too many objects were hit (i.e. too many to fit in the return array)
|
|
|
|
Thanks, thanks, thanks :)
|
|