Changeset 10106 in orxonox.OLD for branches/camera/src/world_entities/camera.cc
- Timestamp:
- Dec 19, 2006, 9:03:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/camera.cc
r10105 r10106 323 323 324 324 325 Vector CameraTarget::iterate(float dt, Vector* target,Vector* cam)325 Vector CameraTarget::iterate(float dt, const Vector* target, const Vector* cam) 326 326 { 327 327 … … 337 337 void CameraTarget::translate(Vector* newPos, float speed, float dt) 338 338 { 339 if (translateTo.x >= this->getAbsCoorX())340 { 341 iterate(dt, &(State::getCameraNode()->getAbsCoor()), newPos);342 glTranslatef(t ranslateTo.x, translateTo.y, translateTo.z);339 if (translateTo.x >= 0.01+this->getAbsCoorX()) 340 { 341 Vector tmpVec= iterate(dt, newPos, &(State::getCameraNode()->getAbsCoor())); 342 glTranslatef(tmpVec.x, tmpVec.y, tmpVec.z); 343 343 } 344 344 }
Note: See TracChangeset
for help on using the changeset viewer.