Changeset 10236 in orxonox.OLD for branches/camera/src/world_entities/camera.cc
- Timestamp:
- Jan 14, 2007, 9:35:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/camera.cc
r10206 r10236 22 22 #include "shell_command.h" 23 23 #include "targets.h" 24 #include <iostream.h> 24 25 25 26 26 … … 324 324 void CameraTarget::detach() 325 325 { 326 glLoadIdentity(); 327 328 //Movemet 329 State::getCameraNode()->setParentSoft(PNode::getNullParent()); 330 331 //LookAt 332 // State::getCameraTargetNode()->setParentSoft(PNode::getNullParent()); 326 State::getCameraNode()->setParentSoft(target); 327 State::getCameraTargetNode()->setParentSoft(target); 333 328 } 334 329 … … 344 339 State::getCameraTargetNode()->setParentSoft(object); 345 340 } 341 342 346 343 347 344 … … 366 363 glLoadIdentity(); 367 364 target->shiftCoor(speed*tmpVec.x, speed*tmpVec.y, speed*tmpVec.z); 368 // cout << "%%" << tmpVec.x << "%%";369 365 370 366 } … … 403 399 void CameraTarget::test() 404 400 { 405 401 glLoadIdentity(); 406 402 407 403 atach(target); 408 404 409 //tar->setRelCoorSoft(1000,1000,1000);410 411 412 //Vector* vec=new Vector(5000,5000,5000);413 //translateNow(vec);414 //glMatrixMode (GL_MODELVIEW);415 //glLoadIdentity();416 //glTranslatef(100, 100, 100);417 // State::getCamera()->getTargetNode()->setRelCoor(100,100,100);418 405 } 419 406 … … 422 409 { 423 410 trans(-200, 0, 0); 424 //target->setAbsCoor(target->getAbsCoorX()-200, target->getAbsCoorY(), target->getAbsCoorZ()); 425 } 426 427 411 } 412 413
Note: See TracChangeset
for help on using the changeset viewer.