Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3535 in orxonox.OLD


Ignore:
Timestamp:
Mar 13, 2005, 11:38:45 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: player connected to the track.
There is some strange error about this, that I do not quite understand.

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3534 r3535  
    343343   \param parent the Parent to set
    344344*/
    345 /*
    346345void PNode::setParent (PNode* parent)
    347346{
    348347  parent->addChild(this);
    349348}
    350 */
     349
    351350
    352351/**
  • orxonox/trunk/src/lib/coord/p_node.h

    r3529 r3535  
    6565  void addChild (PNode* pNode, parentingMode mode);
    6666  void removeChild (PNode* pNode);
    67   //void setParent (PNode* parent);
     67  void setParent (PNode* parent);
    6868  void parentCoorChanged ();
    6969  void parentDirChanged ();
  • orxonox/trunk/src/story_entities/world.cc

    r3529 r3535  
    3030#include "light.h"
    3131#include "fontset.h"
     32#include "track_node.h"
    3233
    3334using namespace std;
     
    245246            this->glmis->step();
    246247
    247             trackManager->setBindSlave(env);
     248            //      trackManager->setBindSlave(env);
     249            TrackNode::getInstance()->addChild(myPlayer);
     250            localCamera->setParent(TrackNode::getInstance());
    248251            trackManager->condition(1, NEAREST, myPlayer);
    249252
  • orxonox/trunk/src/world_entities/player.cc

    r3531 r3535  
    179179  //l->dist = l->dist + travelSpeed * time;
    180180 
    181   Vector* shift = new Vector (this->travelSpeed * time, 0, 0);
    182   this->shiftCoor (shift);
     181  //  Vector* shift = new Vector (this->travelSpeed * time, 0, 0);
     182  //  this->shiftCoor (shift);
    183183 
    184184  /* this updates the player position on the track - user interaction */
Note: See TracChangeset for help on using the changeset viewer.