Raycast on CompoundCollidable

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Peter Prins
Posts: 54
Joined: Fri Mar 11, 2011 11:44 pm

Raycast on CompoundCollidable

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Raycast on CompoundCollidable

Post 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.
Post Reply