Page 1 of 1
Raycast on CompoundCollidable
Posted: Thu Dec 27, 2012 7:03 pm
by Peter Prins
I'm performing a raycast and if it hits a CompoundCollidable I would like to find out what child of the CompoundCollidable it hit. What would be the best way of doing this? Maybe a special raycast method could be added to the CompoundCollidable?
Re: Raycast on CompoundCollidable
Posted: Thu Dec 27, 2012 8:35 pm
by Norbo
Maybe a special raycast method could be added to the CompoundCollidable?
There is an overload of the RayCast method on the CompoundCollidable which outputs the CompoundChild hit by the ray. I don't remember when I added it; it may require the
development version.