Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2011, 5:42:19 PM (13 years ago)
Author:
dafrick
Message:

Cleaning up in SpaceShip and Engine. Fixed several bugs.
Kicked localLinearAcceleration, primaryThrust and auxiliaryThrust out of the SpaceShip, since it wasn't used anymore.
Moved the trail lights back a bit.
Added some documentation to SpaceShip and Engine.
SpeedPickup is working again, will need some further tuning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/MobileEntity.h

    r8706 r8727  
    5555            inline const Vector3& getVelocity() const
    5656                { return this->linearVelocity_; }
     57            /**
     58            @brief Get the velocity in the coordinate-system of the MoblieEntity.
     59            @return Returns the velocity of the MobileEntity in its coordinate-system.
     60            */
    5761            inline Vector3 getLocalVelocity() const
    5862                { return (this->getOrientation().Inverse() * this->getVelocity()); }
     
    6973            inline const Vector3& getAcceleration() const
    7074                { return this->linearAcceleration_; }
    71 
    72             // Added for making N engines work with spaceships
    73             void addAcceleration(const Vector3& acceleration, const Vector3 &relativePosition);
    74             inline void addAcceleration(float x, float y, float z)
    75                 { this->addAcceleration(Vector3(x, y, z), Vector3(0,0,0)); }
    76             // Getter function above
     75            void addAcceleration(const Vector3& acceleration, const Vector3 &relativePosition = Vector3::ZERO); // Adds the input acceleration at the input position to the MobileEntity.
    7776
    7877            void setAngularAcceleration(const Vector3& acceleration);
Note: See TracChangeset for help on using the changeset viewer.