Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: setClassID implemented in all files

File:
1 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));
Note: See TracChangeset for help on using the changeset viewer.