Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10456 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 28, 2007, 7:15:34 PM (18 years ago)
Author:
patrick
Message:

double tick removed for camera, scroll board

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r10443 r10456  
    451451    this->dtS = this->dtS / TICK_SMOOTH_VALUE * speed;
    452452
     453    // tick camera first
     454    State::getCamera()->tick(this->dtS);
    453455    // TICK everything
    454456    for (i = 0; i < this->dataTank->tickLists.size(); ++i)
     
    456458
    457459    /* update tick the rest */
    458     State::getCamera()->tick(this->dtS);
     460
    459461    AnimationPlayer::getInstance()->tick(this->dtS);
    460462    PhysicsEngine::getInstance()->tick(this->dtS);
  • trunk/src/world_entities/camera.cc

    r10449 r10456  
    6666void Camera::init()
    6767{
    68   this->toList( OM_COMMON);
     68  this->toList( OM_ENVIRON_NOTICK);
    6969  //this->setName("camera");
    7070  this->target = new CameraTarget();
  • trunk/src/world_entities/scrolling_screen.cc

    r10455 r10456  
    162162
    163163
    164 
     164    Vector ddir = dir.cross( cam->getAbsDirV());
     165    Quaternion q(ddir, cam->getAbsDirV());
     166    this->setAbsDir( q);
    165167
    166168//     if( this->getParent() != cam)
Note: See TracChangeset for help on using the changeset viewer.