JoshPendergrass
21-11-2007 06:12:51
Ray caster is not able to find my characters using:
Heres my code:
I can get actor's fine, but can never get character's.
Any ideas?
NxOgre (NxOgre 0.9-38.Debug) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.4.2 'Eihort'
- Platform => Windows Debug
Heres my code:
NxOgre::RayCaster rc(
m_pOgre->m_pCamera->getRealPosition(), m_pOgre->m_pCamera->getRealDirection().normalisedCopy(),
8000, NxOgre::RayCaster::RCT_CLOSEST, m_pOgre->m_pNxScene );
if( rc.castShape( NxOgre::RayCaster::AF_NONE ) )
{
NxOgre::RayCastHit myHit = rc.getClosestRaycastHit();
Ogre::Vector3 hitVec = myHit.mWorldNormal;
NxOgre::Actor * a = rc.getClosestActor();
NxOgre::Character * c = rc.getClosestCharacter();
I can get actor's fine, but can never get character's.
Any ideas?