jchmack
28-08-2007 21:44:06
ok i have a character:
and i can scale him:
but for some reason i cant move or rotate him:
why would scale work and not rotate or translate?
// Create character
NxOgre::CharacterParams Params;
Params.setToDefault();
Params.mType = NxOgre::CharacterParams::CT_Box;
Params.mSkinWidth = 0.5;
mCharacter = mScene->createCharacter(Name, InitialPosition, Params);
// Create mesh
//mCharacter->attachMesh("cube.1m.mesh");
//mCharacter->getNode()->scale(0.25f,2.0f,0.25f);
mCharacter->attachMesh(Mesh);
mCharacter->createNode();
MeshNode = mCharacter->getNode();
MeshEntity = mCharacter->getEntity();
and i can scale him:
MeshNode->scale( Vector3(1,1,1)*MercMeshConverter*(CharacterHeight+2*(CharacterRadius)));
but for some reason i cant move or rotate him:
MeshNode->translate(Vector3(0,(CharacterHeight/2),0));
MeshNode->yaw(Degree(180));
why would scale work and not rotate or translate?