Changeset 10103 in orxonox.OLD for branches/camera/src/world_entities/camera.cc
- Timestamp:
- Dec 19, 2006, 7:40:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/camera.cc
r10094 r10103 309 309 310 310 311 Vector itarateTo(0,0,0); 312 311 Vector translateTo(0,0,0); 312 Vector rotateBy(0,0,0); 313 float speed=1; 313 314 314 315 CameraTarget::CameraTarget() … … 334 335 335 336 336 float CameraTarget::iterate(float dt, Vector target, Vector cam) 337 { 337 Vector CameraTarget::iterate(float dt, Vector* target, Vector* cam) 338 { 339 340 //this condititon if needed in tick: if (tmpVec.x >= 0.01) 338 341 Vector tmpVec; 339 340 tmpVec= (target - cam); 341 342 if (tmpVec.x >= 0.01) 343 344 return 0;//tmpVec * fabsf(dt); 342 tmpVec= (*target - *cam); 343 tmpVec.normalize(); 344 return tmpVec; 345 345 346 346 } … … 354 354 355 355 356 356 void CameraTarget::changeSpeed(float speed) 357 { 358 if (speed!=0) 359 this->speed=speed; 360 return; 361 }
Note: See TracChangeset
for help on using the changeset viewer.