Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 29, 2009, 10:47:58 PM (15 years ago)
Author:
scheusso
Message:

removed unneccessary variable in Drone

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

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/worldentities/Drone.cc

    r5833 r5835  
    5555        this->auxilaryThrust_ = 100;
    5656        this->rotationThrust_ = 10;
    57         this->steering_ = Vector3::ZERO;
    5857       
    5958        this->setCollisionType(WorldEntity::Dynamic);
     
    122121    {
    123122        this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
    124         this->steering_.z = -value.x;
    125123    }
    126124
     
    134132    {
    135133        this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
    136         this->steering_.x = value.x;
    137134    }
    138135
     
    146143    {
    147144        this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
    148         this->steering_.y = value.x;
    149145    }
    150146
  • code/branches/tutorial/src/orxonox/worldentities/Drone.h

    r5834 r5835  
    111111            DroneController *myController_; //!< The controller of the Drone.
    112112           
    113             Vector3 steering_;
    114113            btVector3 localLinearAcceleration_; //!< The linear acceleration that is used to move the Drone the next tick.
    115114            btVector3 localAngularAcceleration_; //!< The linear angular acceleration that is used to move the Drone the next tick.
Note: See TracChangeset for help on using the changeset viewer.