Guest User

Untitled

a guest
Nov 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. m_pCamera= the camera
  2. m_Camera = sceneNode
  3. m_pCamera->move(m_TranslateVector);
  4.  
  5. m_pCamera->move(m_TranslateVector / 10);
  6. Quaternion q(Degree(89.9002), Vector3::UNIT_Y);
  7.  
  8. //m_Camera->setPosition(m_pCamera->getPosition());
  9. m_Camera->setOrientation(m_pCamera->getOrientation());
  10.  
  11. Ogre::Vector3 camPos = m_pCamera->getPosition();
  12. Ogre::Vector3 dir = m_pCamera->getDirection();
  13. dir.normalise();
  14.  
  15.  
  16. Ogre::Vector3 up = m_pCamera->getUp();
  17.  
  18. up.normalise();
  19. camPos.y = camPos.y + .10;
  20. //camPos.x = camPos.x + .40;
  21. Ogre::Vector3 posOfObj = camPos + 18.0f * dir + -10.1f*up;
  22.  
  23. m_Camera->setPosition(posOfObj);
  24. m_Camera->rotate(q);
Add Comment
Please, Sign In to add comment