Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2017, 4:16:35 PM (7 years ago)
Author:
jostoffe
Message:

Pfeil wird angezeigt und fliegt mit dem Raumschiff mit, aber er ist noch nicht an der richtigen Position. Dazu muss ich noch die richtige Formel finden anhand der momentanen Ausrichtung des Raumschiffes

Location:
code/branches/Waypoints_HS17/src/orxonox/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Waypoints_HS17/src/orxonox/worldentities/Arrow.cc

    r11539 r11559  
    4949        RegisterObject(Arrow);
    5050
    51         this->myController_ = NULL;
     51        //this->myController_ = NULL;
    5252
    5353        this->localLinearAcceleration_.setValue(0, 0, 0);
     
    6969    {
    7070        // Deletes the controller if the object was initialized and the pointer to the controller is not NULL.
    71         if( this->isInitialized() && this->myController_ != NULL )
    72             delete this->myController_;
     71       // if( this->isInitialized() && this->myController_ != NULL )
     72            //delete this->myController_;
    7373    }
    7474
     
    184184    }
    185185
     186
    186187}
  • code/branches/Waypoints_HS17/src/orxonox/worldentities/Arrow.h

    r11539 r11559  
    3333
    3434#include "core/XMLPort.h"
    35 #include "controllers/ArrowController.h"
     35//#include "controllers/ArrowController.h"
    3636
    3737#include "ControllableEntity.h"
     38#include "WorldEntity.h"
    3839
    3940namespace orxonox {
     
    132133
    133134        private:
    134             ArrowController *myController_; //!< The controller of the Arrow.
     135            //ArrowController *myController_; //!< The controller of the Arrow.
    135136
    136137            btVector3 localLinearAcceleration_; //!< The linear acceleration that is used to move the Arrow the next tick.
Note: See TracChangeset for help on using the changeset viewer.