Changeset 2757 for code/trunk/src/orxonox
- Timestamp:
- Mar 8, 2009, 1:25:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/Camera.cc
r2710 r2757 109 109 float coeff = min(1.0f, 15.0f * dt); 110 110 111 Vector3 offset = this->getWorldPosition() - this->cameraNode_-> getWorldPosition();111 Vector3 offset = this->getWorldPosition() - this->cameraNode_->_getDerivedPosition(); 112 112 this->cameraNode_->translate(coeff * offset); 113 113 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)); 115 115 //this->cameraNode_->setOrientation(this->getWorldOrientation()); 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.