Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2011, 2:59:07 PM (13 years ago)
Author:
decryphe
Message:
  • Moved handling of blur effect from Engine.cc to SpaceShip.cc.
  • Implemented handling of multiple engines per SpaceShip, so that in future it would be possible to turn single engines on/off individually (for example if one gets destroyed on a big ship).
  • Updated some pointers accessing the single Engine of a SpaceShip to ask the SpaceShip itself instead for data.
File:
1 edited

Legend:

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

    r5781 r8426  
    7070                { return this->linearAcceleration_; }
    7171
     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
     77
    7278            void setAngularAcceleration(const Vector3& acceleration);
    7379            inline void setAngularAcceleration(float x, float y, float z)
Note: See TracChangeset for help on using the changeset viewer.