[Opal-commits] opal/samples/src PhysicalCamera.h,1.6,1.7
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-04-19 14:02:45
|
Update of /cvsroot/opal/opal/samples/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7749/samples/src Modified Files: PhysicalCamera.h Log Message: Made playpen app work on Linux. Index: PhysicalCamera.h =================================================================== RCS file: /cvsroot/opal/opal/samples/src/PhysicalCamera.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PhysicalCamera.h 15 Apr 2005 08:50:42 -0000 1.6 --- PhysicalCamera.h 19 Apr 2005 14:02:35 -0000 1.7 *************** *** 270,274 **** // should be set manually here because we constantly // reset the camera's orientation. ! opal::Rayr r(opal::Point3r(), rayDir); mGraspingSensor->setRay(r); } --- 270,275 ---- // should be set manually here because we constantly // reset the camera's orientation. ! opal::Point3r dummyPoint; ! opal::Rayr r(dummyPoint, rayDir); mGraspingSensor->setRay(r); } *************** *** 278,283 **** // straight forward into the scene. Ogre::Vector3 ogreCamPos = mOgreCamera->getPosition(); ! opal::Rayr r(opal::Point3r(ogreCamPos[0], ogreCamPos[1], ! ogreCamPos[2]), rayDir); mGraspingSensor->setRay(r); } --- 279,285 ---- // straight forward into the scene. Ogre::Vector3 ogreCamPos = mOgreCamera->getPosition(); ! opal::Point3r opalCamPos(ogreCamPos[0], ogreCamPos[1], ! ogreCamPos[2]); ! opal::Rayr r(opalCamPos, rayDir); mGraspingSensor->setRay(r); } |