Ray casting

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
sebbn
Posts: 4
Joined: Thu Sep 09, 2010 3:08 pm

Ray casting

Post by sebbn »

Hey :)
i have some problems.. Im trying to cast a ray from my camera and if its intersecting any entities remove them... But i cant get the ray thing working, im using a list that i filled with entities.

~sebbn
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Ray casting

Post by Norbo »

The raycast will put entities that it intersects into the list. It shouldn't be given lists that are already full of elements; it will test against objects the space (or container or whatever is being raycasted).
sebbn
Posts: 4
Joined: Thu Sep 09, 2010 3:08 pm

Re: Ray casting

Post by sebbn »

aha :)
Post Reply