Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 14, 2007, 9:35:08 PM (18 years ago)
Author:
gfilip
Message:

another update :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/camera.cc

    r10206 r10236  
    2222#include "shell_command.h"
    2323#include "targets.h"
    24 #include <iostream.h>
     24
    2525
    2626
     
    324324void CameraTarget::detach()
    325325{
    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);
    333328}
    334329
     
    344339  State::getCameraTargetNode()->setParentSoft(object);
    345340}
     341
     342
    346343
    347344
     
    366363    glLoadIdentity();
    367364    target->shiftCoor(speed*tmpVec.x, speed*tmpVec.y, speed*tmpVec.z);
    368     // cout << "%%" << tmpVec.x << "%%";
    369365
    370366  }
     
    403399void CameraTarget::test()
    404400{
    405   glLoadIdentity();
     401glLoadIdentity();
    406402
    407403atach(target);
    408404
    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);
    418405}
    419406
     
    422409{
    423410  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.