Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1228 for code


Ignore:
Timestamp:
May 3, 2008, 9:09:20 PM (17 years ago)
Author:
rgrieder
Message:

merged bugfix to input branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/objects/WorldEntity.h

    r1056 r1228  
    155155
    156156            inline void setRotationAxisLoader(const Vector3& axis)
    157                 { this->rotationAxis_ = axis; }
     157                { this->rotationAxis_ = axis; rotationAxis_.normalise(); }
    158158            inline void setRotationAxis(const Vector3& axis)
    159                 { this->rotationAxis_ = axis; }
     159                { this->rotationAxis_ = axis; rotationAxis_.normalise(); }
    160160            inline void setRotationAxis(Real x, Real y, Real z)
    161                 { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; }
     161                { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; rotationAxis_.normalise(); }
    162162            inline const Vector3& getRotationAxis() const
    163163                { return this->rotationAxis_; }
Note: See TracChangeset for help on using the changeset viewer.