Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 20, 2012, 1:11:30 PM (13 years ago)
Author:
scmoritz
Message:

Movement to Waypoint fixed. Speed still has to get adjusted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/waypoints/src/orxonox/controllers/FormationController.cc

    r9054 r9093  
    277277                {
    278278                        // I AM HERE
    279                         Vector3 v_temp = this->getControllableEntity()->getPosition() * target;
    280                         Quaternion quat = v_temp.getRotationTo(target);
     279                        Vector3 v_temp = this->getControllableEntity()->getOrientation();
     280                        Quaternion quat = v_temp.getRotationTo(target) * v_temp;
    281281                        this->getControllableEntity()->rotate(quat);
    282282                       
Note: See TracChangeset for help on using the changeset viewer.