Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 8:20:52 PM (18 years ago)
Author:
bensch
Message:

new rail-proj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc

    r9159 r9167  
    424424        if (this->toTravelHeight != NULL)
    425425        {
    426           this->travelNode->shiftCoor(Vector(0, (*toTravelHeight - this->travelNode->getAbsCoor().y) * dt, 0));
     426          this->travelNode->shiftCoor(Vector(0, (*toTravelHeight - this->travelNode->getAbsCoor().y) * dt * 10.0, 0));
    427427          if (fabsf(this->travelNode->getAbsCoor().y - *this->toTravelHeight) < .1)
    428428          {
     
    435435        accel.y = 0.0;
    436436
    437 
    438437        Vector accelerationDir = this->getAbsDir().apply(accel * this->acceleration);
    439438        accelerationDir.y = 0.0;
    440 
    441 
    442         /*
    443                 if (this->getRelCoor().z > this->travelDistance.y && accel.z > 0.0)
    444                 accel.z = 0.0f;
    445                 if (this->getRelCoor().z < -this->travelDistance.y && accel.z < 0.0)
    446                 accel.z = 0.0f;
    447 
    448                 if (this->getRelCoor().x > this->travelDistance.x && accel.x > 0.0)
    449                 accel.x = 0.0f;
    450                 if (this->getRelCoor().x < -this->travelDistance.x && accel.x < 0.0)
    451                 accel.x = 0.0f;*/
    452 
    453439
    454440        // this is the air friction (necessary for a smooth control)
     
    523509      else if (cameraLook < -M_PI_4)
    524510        cameraLook = -M_PI_4;
    525       //this->cameraNode.setRelDirSoft(this->direction,10);
    526511    }
    527512  }
Note: See TracChangeset for help on using the changeset viewer.