Page 1 of 1
Help~
Posted: Sat May 07, 2011 4:45 pm
by xiaolim
anyone got any good tutorial on how to use RayCast method?
Re: Help~
Posted: Sat May 07, 2011 6:01 pm
by Norbo
There's no specific documentation/tutorial about raycasting, but if you have specific questions, I can help.
The general idea is that the Space.RayCast returns the first hit (with an optional filter). It tests BroadPhaseEntries that live in the broad phase using the broad phase's acceleration structure. You can use the Space.BroadPhase.QueryAccelerator to get all the broad phase entries associated with a query. Ray casting can then be performed on each object however you wish.