Raycaster not finding Character

JoshPendergrass

21-11-2007 06:12:51

Ray caster is not able to find my characters using:

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?

JoshPendergrass

30-11-2007 03:54:32

am still having problem, not sure what I'm missing, tried it with:

rc.getClosestCharacter();


Made sure NX_USE_CHARACTER_API = 1

Any suggestions?

twilight17

30-11-2007 04:11:29

Did you try to use Ogre 1.45? Im not sure if it matters, but hey, might as well try :)

JoshPendergrass

04-12-2007 06:43:10

Thanks for the suggestion I needed to update anyways :). Still having the same problem though.