Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 8, 2009, 1:25:40 PM (16 years ago)
Author:
rgrieder
Message:

Code level compliance with OGRE 1.6
You can not yet use it though! The particle, material, etc. scripts do not yet fit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/Camera.cc

    r2710 r2757  
    109109            float coeff = min(1.0f, 15.0f * dt);
    110110
    111             Vector3 offset = this->getWorldPosition() - this->cameraNode_->getWorldPosition();
     111            Vector3 offset = this->getWorldPosition() - this->cameraNode_->_getDerivedPosition();
    112112            this->cameraNode_->translate(coeff * offset);
    113113
    114             this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->getWorldOrientation(), this->getWorldOrientation(), true));
     114            this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->_getDerivedOrientation(), this->getWorldOrientation(), true));
    115115            //this->cameraNode_->setOrientation(this->getWorldOrientation());
    116116        }
Note: See TracChangeset for help on using the changeset viewer.