Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2009, 10:00:15 AM (15 years ago)
Author:
rgrieder
Message:

Replaced <OgrePrerequisites.h> with "util/OgreForwardRefs.h": I haven't yet realised that OgrePrerequisites.h includes about every single std header by including the OgreMemoryManager.h file.
And while at it, I took care of some type conversions (partially revealed by the missing OgrePrerequisites.h that disabled warnings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/objects/worldentities/MobileEntity.cc

    r3186 r3192  
    9292                this->angularVelocity_.z += angularAcceleration_.z * dt;
    9393                // Calculate new orientation with quaternion derivative. This is about 30% faster than with angle/axis method.
    94                 float mult = dt * 0.5;
     94                float mult = dt * 0.5f;
    9595                // TODO: this could be optimized by writing it out. The calls currently create 4 new Quaternions!
    9696                Quaternion newOrientation(0.0f, this->angularVelocity_.x * mult, this->angularVelocity_.y * mult, this->angularVelocity_.z * mult);
Note: See TracChangeset for help on using the changeset viewer.