Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10099 in orxonox.OLD for branches/playability/src


Ignore:
Timestamp:
Dec 19, 2006, 5:13:25 PM (18 years ago)
Author:
muellmic
Message:

conflict at end of movement switch resolved for 10012312112th time =S. but now: track implementation causes SIGSEV crash.

Location:
branches/playability/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/elements/glgui_energywidget.h

    r8988 r10099  
    2626    void setValue(float value);
    2727
     28    inline GLGuiWidget* getNameWidget() {return &this->_name;};
     29    inline GLGuiWidget* getValueWidget() {return &this->_valueText;};
     30    inline GLGuiWidget* getBarWidget() {return &this->_bar;};
     31
    2832  protected:
    2933    virtual void resize();
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10098 r10099  
    926926        this->setRelDirSoft(Quaternion(0, Vector(1,0,0)), 6);
    927927      }
    928      
    929 
    930       this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
    931       this->shiftCoor (this->travelVelocity * dt);
    932928
    933929    //normalisation of the vectors (vector sum must be <= travelspeed)
     
    939935    }
    940936
    941     //this moves camera and ship along the travel path. 
     937    //this moves camera and ship along the travel path.
    942938    this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
    943    
    944     //set new coordinates calculated through key- events.
    945     this->shiftCoor (this->travelVelocity * dt);
     939
    946940    break;
    947941    }
     
    951945      PRINTF(4)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName());
    952946  }
    953  
    954 
    955 /*
    956   this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
     947   //set new coordinates calculated through key- events.
    957948  this->shiftCoor (this->travelVelocity * dt);
    958 
    959   float angle = this->travelVelocity.z / travelSpeed * pi / 3;
    960   if (angle > pi/4) angle = pi/4;
    961   if (angle < -pi/4) angle = -pi/4;
    962   this->setRelDirSoft(Quaternion(angle, Vector(1,0,0)), 5.0f);
    963 */
    964  
    965949}
    966950
Note: See TracChangeset for help on using the changeset viewer.