Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3966 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Apr 26, 2005, 12:23:38 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/particleEngine into the trunk, because of the new vector class
merged with command:
svn merge -r 3922:HEAD particleEngine/ ../trunk/

not merged src/story_entities/world.cc. will do this at a later time (do not forget)

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/camera.cc

    r3869 r3966  
    139139  if (tmpFovy > .001)
    140140    this->fovy += (this->toFovy - this->fovy) * dt;
    141   Vector tmpPos = (this->toRelCoor - *this->getRelCoor()) * dt;
     141  Vector tmpPos = (this->toRelCoor - this->getRelCoor()) * dt;
    142142  if (tmpPos.len() >= .001)
    143143    {
    144       tmpPos = tmpPos + *this->getRelCoor();
     144      tmpPos = tmpPos + this->getRelCoor();
    145145      this->setRelCoor(tmpPos);
    146146    }
  • orxonox/trunk/src/world_entities/player.cc

    r3881 r3966  
    188188  //orthDirection = orthDirection.cross (direction);
    189189
    190   if( this->bUp && this->getRelCoor()->x < 20)
     190  if( this->bUp && this->getRelCoor().x < 20)
    191191    accel = accel+(direction*acceleration);
    192   if( this->bDown && this->getRelCoor()->x > -5)
     192  if( this->bDown && this->getRelCoor().x > -5)
    193193    accel = accel-(direction*acceleration);
    194   if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor()->z*2)
     194  if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)
    195195    accel = accel - (orthDirection*acceleration);
    196   if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor()->z*2)
     196  if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)
    197197    accel = accel + (orthDirection*acceleration);
    198198  if( this->bAscend )
Note: See TracChangeset for help on using the changeset viewer.