NxOgre Raycasting

RedEyeCoder

12-05-2009 05:43:57

Does NxOgre having raycasting? I can see that NxScene has raycastClosestShape, however that returns an NxShape (which apparently NxOgre does not seem to use directly.

What I need to do is associate an Ogre::MovableObject with an NxShape, so that I can lookup what object has been hit by raycasting. Or something that achieves that affect.

I searched for raycasting/raycast etc but the results are mostly out of date references to code that quite obviously is not used/supported anymore.

Cheers.

betajaen

12-05-2009 10:50:43

Yes it has raycasting functions in Scene for BloodyMess and a RayCaster class in Bleeding.

RedEyeCoder

28-05-2009 02:46:15

Hi, sorry I am just getting back to NxOgre stuff now. I am still trying to find how I can associate a NxShape with an Ogre MovableObject. Can you give me some tips on how to achieve this as per my original post?