Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2016, 4:06:17 PM (8 years ago)
Author:
ooguz
Message:

einige Anderungen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/QuestGuide_HS16/src/orxonox/worldentities/Waypoint.cc

    r11243 r11258  
    1515        model = new Model(this->getContext());
    1616        model->setMeshSource("cube.mesh");  // Name of the arrow file for now bottle
     17        this->attach(model);
    1718        model->setScale(3);
    1819        //model->setOrientation(Vector3(0,0,-1));
    19         model->setPosition(this->getPosition());        // this is wrong, it has to be triggered
     20        model->setPosition(Vector3(0.0,0.0,0.0));        // this is wrong, it has to be triggered
     21        waypoint_active = false;
     22        distancetrigger = new DistanceTrigger(this->getContext());   
     23        distancetrigger->setDistance(100);
     24        this->attach(distancetrigger);
    2025    }
    2126
     
    2530
    2631
    27      WorldEntity::setDirection
    28      WorldEntity::getPosition()
    29      setOrientation()
     32     //WorldEntity::setDirection
     33     //WorldEntity::getPosition()
     34     //setOrientation()
    3035
    3136
    3237    void Waypoint::XMLPort(Element& xmlelement, XMLPort::Mode mode){
    3338        SUPER(Waypoint, XMLPort, xmlelement, mode); // From the SpaceShip.cc file
    34         //XMLPortObject(SpaceShip, Engine, "engines", addEngine, getEngine, xmlelement, mode); // TRY ADDING THE WAYPOINT ARROW LIKE AN ENGINE
    35  
     39        XMLPortParam(Waypoint, "order", getOrder, setOrder, xmlelement, mode);
    3640
    3741    }
Note: See TracChangeset for help on using the changeset viewer.