Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4597 in orxonox.OLD for orxonox/trunk/src/util/track


Ignore:
Timestamp:
Jun 11, 2005, 12:55:48 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setClassID implemented in all files

Location:
orxonox/trunk/src/util/track
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/track/pilot_node.cc

    r4456 r4597  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    2828   \brief standard constructor
    2929*/
    30 PilotNode::PilotNode () 
     30PilotNode::PilotNode ()
    3131{
    3232   this->setClassID(CL_PILOT_PARENT, "PilotNode");
     33   this->setName("PilotNode");
    3334
    3435   travelSpeed = 30.0;
     
    4041   \brief standard deconstructor
    4142*/
    42 PilotNode::~PilotNode () 
     43PilotNode::~PilotNode ()
    4344{
    4445
    4546}
    4647
    47 /** 
     48/**
    4849    \brief ticks the node
    49     \param time the time about whitch to tick                                           \
     50    \param time the time about whitch to tick                                           \
    5051*/
    5152void PilotNode::tick(float time)
     
    7374   direction = q.apply(direction);
    7475
    75    
     76
    7677
    7778   Vector orthDirection(0,0,1);
    7879   orthDirection = q.apply(orthDirection);
    79    
     80
    8081   if( this->bUp)
    8182     accel = accel+(direction*acceleration);
     
    8384     accel = accel -(direction*acceleration);
    8485   if( this->bLeft)
    85      accel = accel - (orthDirection*acceleration); 
     86     accel = accel - (orthDirection*acceleration);
    8687   if( this->bRight)
    8788     accel = accel + (orthDirection*acceleration);
    88    
     89
    8990   Vector move = accel * time;
    9091   this->shiftCoor (move);
    91    
     92
    9293   Quaternion q1(-M_PI/4 * this->roll/40000.0, Vector(0,0,1));
    9394   Quaternion q2(-M_PI/4 * this->pitch/30000.0, Vector(0,1,0));
  • orxonox/trunk/src/util/track/pilot_node.h

    r4456 r4597  
    1 /*! 
     1/*!
    22    \file pilot_node.h
    33    \brief Definition of a PilotNode
  • orxonox/trunk/src/util/track/track_manager.cc

    r4584 r4597  
    4040TrackElement::TrackElement(void)
    4141{
     42  this->setClassID(CL_TRACK_ELEMENT, "TrackElement");
     43
    4244  this->isFresh = true;
    4345  this->isHotPoint = false;
     
    358360{
    359361  this->setClassID(CL_TRACK_MANAGER, "TrackManager");
     362  this->setName("TrackManager");
    360363
    361364  TrackManager::singletonRef = this; // do this because otherwise the TrackNode cannot get The instance of the TrackManager
  • orxonox/trunk/src/util/track/track_node.cc

    r4489 r4597  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    2828   \brief standard constructor
    2929*/
    30 TrackNode::TrackNode () 
     30TrackNode::TrackNode ()
    3131{
    3232  this->setClassID(CL_TRACK_NODE, "TrackNode");
    33   this->setName("TrackNode"); /* absolete but still used... */
     33  this->setName("TrackNode");
    3434
    3535  NullParent::getInstance()->addChild(this);
     
    3838}
    3939
    40 
    4140/**
    4241   \brief standard deconstructor
    4342*/
    44 TrackNode::~TrackNode () 
     43TrackNode::~TrackNode ()
    4544{
    4645
Note: See TracChangeset for help on using the changeset viewer.