Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m_pCamera= the camera
- m_Camera = sceneNode
- m_pCamera->move(m_TranslateVector);
- m_pCamera->move(m_TranslateVector / 10);
- Quaternion q(Degree(89.9002), Vector3::UNIT_Y);
- //m_Camera->setPosition(m_pCamera->getPosition());
- m_Camera->setOrientation(m_pCamera->getOrientation());
- Ogre::Vector3 camPos = m_pCamera->getPosition();
- Ogre::Vector3 dir = m_pCamera->getDirection();
- dir.normalise();
- Ogre::Vector3 up = m_pCamera->getUp();
- up.normalise();
- camPos.y = camPos.y + .10;
- //camPos.x = camPos.x + .40;
- Ogre::Vector3 posOfObj = camPos + 18.0f * dir + -10.1f*up;
- m_Camera->setPosition(posOfObj);
- m_Camera->rotate(q);
Add Comment
Please, Sign In to add comment