Changeset 69 in flair-src for trunk/lib/FlairSimulator/src/Model_impl.cpp


Ignore:
Timestamp:
Sep 2, 2016, 5:48:40 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

refonte camera simu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/src/Model_impl.cpp

    r15 r69  
    3737#include <IVideoDriver.h>
    3838#include <ICameraSceneNode.h>
    39 #include "AnimPoursuite.h"
     39#include "FollowMeCamera.h"
     40
    4041using namespace irr;
    4142using namespace video;
     
    8283
    8384  // camera
    84   camera = getSceneManager()->addCameraSceneNode();
    85   camera->setAspectRatio(
    86       getGui()->getAspectRatio()); // on force a cause du view port
    87   camera->setUpVector(vector3df(0, 0, 1));
    88 
    89   animator = new AnimPoursuite(this);
    90   camera->addAnimator(animator);
    91   camera->setFarValue(8000);
     85  camera = new FollowMeCamera(this);
    9286
    9387  position_init = false;
Note: See TracChangeset for help on using the changeset viewer.