ironwolf151
10-05-2009 20:01:59
Hi all,
I have a problem to rotate a planegeometry.
I have this :
But i don't know how i can rotate it , i looked in the documentation but i didn't find anything.
I found how to rotate an OGRE3DBody , but i don't know to rotate a NxOgre::SceneGeometry.
So i tried to do something else , but i obtain an error when i launch the application :
And the error is locate in the method : extern inline Matrix44 getGlobalPose(NxActor* actor)
So , how can i create and rotate a Plane please ?
Thanks
I have a problem to rotate a planegeometry.
I have this :
this->_Ground = this->_NxScene->createSceneGeometry(new NxOgre::PlaneGeometry(0, NxOgre::Real3(0, 1, 0)), NxOgre::Matrix44(NxOgre::Matrix44::IDENTITY));
But i don't know how i can rotate it , i looked in the documentation but i didn't find anything.
I found how to rotate an OGRE3DBody , but i don't know to rotate a NxOgre::SceneGeometry.
So i tried to do something else , but i obtain an error when i launch the application :
this->_RenderSystem->createBody(new NxOgre::PlaneGeometry(0, NxOgre::Real3(0, 1, 0)), NxOgre::Real3(0, 0, 0), "plane.mesh");
And the error is locate in the method : extern inline Matrix44 getGlobalPose(NxActor* actor)
extern inline Matrix44 getGlobalPose(NxActor* actor)
{
Matrix44 matrix;
actor->getGlobalPose().getRowMajor44(matrix.ptr()); // get method return NULL.
return matrix;
}
So , how can i create and rotate a Plane please ?
Thanks