Changeset 1165 for GTP/trunk/App/Demos
- Timestamp:
- 07/27/06 17:08:21 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE
- Files:
-
- 2 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 -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp
r1163 r1165 117 117 //mCamera->setPosition(Vector3(830, 300, -540)); 118 118 //mCamera->setOrientation(Quaternion(-0.3486, 0.0122, 0.9365, 0.0329)); 119 mCamera->setPosition(Vector3(688, 866, 944)); 120 mCamera->setOrientation(Quaternion(-0.979419, 0.201128, 0.0165594, 0.00340038)); 119 // total view 120 //mCamera->setPosition(Vector3(688, 866, 944)); 121 //mCamera->setOrientation(Quaternion(-0.979419, 0.201128, 0.0165594, 0.00340038)); 121 122 mTopCam->setPosition(Vector3(1232, 3990, -1477)); 123 // walkthrough view 124 mCamera->setPosition(Vector3(1102.56, 181.845, -350.305)); 125 mCamera->setOrientation(Quaternion(-0.977321, -0.117497, -0.174903, 0.0210273)); 122 126 } 123 127 else
Note: See TracChangeset
for help on using the changeset viewer.