Changeset 7014 in orxonox.OLD for trunk/src/world_entities/camera.cc
- Timestamp:
- Feb 3, 2006, 2:14:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r7013 r7014 65 65 * @returns The PNode of the Target (from there you can get position and so on 66 66 */ 67 PNode* Camera::getTarget ()67 PNode* Camera::getTargetNode() const 68 68 { 69 69 return (PNode*)this->target; … … 146 146 { 147 147 //update frustum plane 148 this->viewVector = (this-> getAbsCoor() - this->target->getAbsCoor()).getNormalized();149 this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + this->viewVector * 3.0);148 this->viewVector = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized(); 149 this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + this->viewVector * 0.1); 150 150 151 151 this->upVector = this->getAbsDirV();
Note: See TracChangeset
for help on using the changeset viewer.