How to move floor plane

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

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)

betajaen

02-09-2011 08:07:26

Local pose doesn't apply to planes.

Set the distance property in the PlaneDescription to -80

moustaoru

02-09-2011 08:27:00

thank you betajaen, it's good.