- Timestamp:
- Oct 31, 2016, 4:06:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/QuestGuide_HS16/src/orxonox/worldentities/Waypoint.cc
r11243 r11258 15 15 model = new Model(this->getContext()); 16 16 model->setMeshSource("cube.mesh"); // Name of the arrow file for now bottle 17 this->attach(model); 17 18 model->setScale(3); 18 19 //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); 20 25 } 21 26 … … 25 30 26 31 27 WorldEntity::setDirection28 WorldEntity::getPosition()29 setOrientation()32 //WorldEntity::setDirection 33 //WorldEntity::getPosition() 34 //setOrientation() 30 35 31 36 32 37 void Waypoint::XMLPort(Element& xmlelement, XMLPort::Mode mode){ 33 38 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); 36 40 37 41 }
Note: See TracChangeset
for help on using the changeset viewer.