Help~

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
xiaolim
Posts: 1
Joined: Sat May 07, 2011 4:36 pm

Help~

Post by xiaolim »

anyone got any good tutorial on how to use RayCast method?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Help~

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