moustaoru
01-09-2011 17:47:04
Hi !
We are currently trying to adapt the code of the tutorial 101, that is to say making a box fall on an horizontal plane.
Nevertheless, for some reasons, we do not want to put the floor plane at the elevation "0" but at the elevation "-80".
We have tried several solutions (see the different codes in the following), but without results: the box is still falling on the "0" plane.
Please, could you explain me how to choose the global position and orientation of the floor plane.
Regards,
Moustarou
or
We are currently trying to adapt the code of the tutorial 101, that is to say making a box fall on an horizontal plane.
Nevertheless, for some reasons, we do not want to put the floor plane at the elevation "0" but at the elevation "-80".
We have tried several solutions (see the different codes in the following), but without results: the box is still falling on the "0" plane.
Please, could you explain me how to choose the global position and orientation of the floor plane.
Regards,
Moustarou
NxOgre::Matrix44 mat(NxOgre::Vec3(0,-80,0));
NxOgre::PlaneGeometryDescription PlaneDesdc;
NxOgre::SceneGeometry* sceneNxOgre = mScene->createSceneGeometry(PlaneDesd,mat)
or
NxOgre::Matrix44 mat(NxOgre::Vec3(0,-80,0));
NxOgre::PlaneGeometryDescription PlaneDesdc;
PlaneDesdc.mLocalPose = mat;
NxOgre::SceneGeometry* sceneNxOgre = mScene->createSceneGeometry(PlaneDesd)