jchmack
10-01-2008 11:26:09
Ok i am trying to get my character to float around.
I can get my character to move along the x/z plane fine like this:
but if i try to get him to move upwards like:
setRawNextMovementDirection doesn't seem to move my character. Any idea why?
I am using:
NxOgre (NxOgre 0.9-38) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.4.5 'Eihort'
- Platform => Windows
all help is appreciated =)
I can get my character to move along the x/z plane fine like this:
case ForwardRight:
mCharacter->setRawNextMovementDirection(NxVec3(Cos45,0,-Cos45) * CalculatedMovespeed);
break;
but if i try to get him to move upwards like:
if(Jumping==true)
{
cout << "Jumping" << endl;
mCharacter->setRawNextMovementDirection(NxVec3(0,1,0) * CalculatedMovespeed);
//mCharacter->addMovement(Character::DR_Jump_Up);
}
setRawNextMovementDirection doesn't seem to move my character. Any idea why?
I am using:
NxOgre (NxOgre 0.9-38) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.4.5 'Eihort'
- Platform => Windows
all help is appreciated =)