Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2015, 7:58:44 PM (8 years ago)
Author:
gania
Message:

finished copyOrientation function. Now ships move smoothly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.cc

    r10877 r10879  
    8282        }
    8383        if (this->bFirstTick_)
     84        {
     85            // this->getControllableEntity()->setOrientation(1,0,0,0);
     86            // this->getControllableEntity()->rotateRoll(-this->getControllableEntity()->getOrientation().getRoll(true).valueRadians());
     87            // this->getControllableEntity()->rotateYaw(-this->getControllableEntity()->getOrientation().getYaw(true).valueRadians());
     88            // this->getControllableEntity()->rotatePitch(-this->getControllableEntity()->getOrientation().getPitch(true).valueRadians());           
    8489            this->bFirstTick_ = false;
     90
     91        }
    8592                SUPER(ActionpointController, tick, dt);
    8693        }
     
    358365            (this->getProtect()->getWorldOrientation()* (*targetRelativePosition)));
    359366        this->setTargetPosition(targetAbsolutePosition);
     367        this->setTargetOrientation(this->getProtect()->getWorldOrientation());
    360368    }
    361369    void ActionpointController::nextActionpoint()
Note: See TracChangeset for help on using the changeset viewer.