Changeset 1165 for GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include
- Timestamp:
- 07/27/06 17:08:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h
r1163 r1165 666 666 mCamera->moveRelative(mTranslateVector); 667 667 mTopCam->moveRelative(mCullTransVec); 668 669 Vector3 pos = mCamera->getPosition(); 670 RaySceneQuery * rsquery = mSceneMgr->createRayQuery(Ray(pos, Vector3::NEGATIVE_UNIT_Y)); 671 RaySceneQueryResult& rsresult = rsquery->execute(); 672 673 RaySceneQueryResult::iterator it = rsresult.begin(); 674 RaySceneQueryResult::iterator end = rsresult.end(); 675 676 while (it != end && it->movable) 677 { 678 if (it->movable->getName() != "PlayerCam") 679 { 680 mCamera->setPosition(pos.x, it->movable->getWorldBoundingBox().getCenter().y + 3, pos.z); 681 break; 682 } 683 it++; 684 } 685 OGRE_DELETE(rsquery); 668 686 } 669 687
Note: See TracChangeset
for help on using the changeset viewer.