Commits

Anonymous committed 8ac66f0 Merge

Merged from dev

  • Participants
  • Parent commits 7be0187, 898d6c2
  • Tags 1.0.0-RC2

Comments (0)

Files changed (2)

 07e74d3f78398a2ab7d0b7d14ede90969cee7e25 1.0.0-RC1
-365ac9445107aac75e36dd3fce429a54c64a801f 1.0.0-RC2

File src/rendering/UserCamera.cc

   key = ptrack->createNodeKeyFrame(0);
   key->setRotation(this->pitchNode->getOrientation());
 
-  double dt = _time / _pts.size();
+  double dt = _time / (_pts.size()-1);
   double tt = 0;
-  std::cout << "Time[" << _time << "] DT[" << dt << "]\n";
   for (unsigned int i=0; i < _pts.size(); i++)
   {
     math::Vector3 pos = _pts[i].pos;
     Ogre::Quaternion yawFinal(Ogre::Radian(rpy.z), Ogre::Vector3(0,0,1));
     Ogre::Quaternion pitchFinal(Ogre::Radian(rpy.y), Ogre::Vector3(0,1,0));
 
-    std::cout << "TT[" << tt << "]\n";
     key = strack->createNodeKeyFrame(tt);
     key->setTranslate(Ogre::Vector3(pos.x, pos.y, pos.z));
     key->setRotation(yawFinal);