Changeset 11332 for code/branches/QuestGuide_HS16
- Timestamp:
- Dec 12, 2016, 3:17:21 PM (8 years ago)
- Location:
- code/branches/QuestGuide_HS16/src/modules/waypoints
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/QuestGuide_HS16/src/modules/waypoints/Waypoint.cc
r11318 r11332 21 21 model->setMeshSource("cube.mesh"); // Name of the arrow file for now bottle 22 22 this->attach(model); 23 model->setScale( 3);23 model->setScale(0); 24 24 //model->setOrientation(Vector3(0,0,-1)); 25 25 model->setPosition(Vector3(0.0,0.0,0.0)); // this is wrong, it has to be triggered 26 26 waypoint_actived = false; 27 distancetrigger = new DistanceTrigger(this->getContext()); 27 distancetrigger = new DistanceTrigger(this->getContext()); 28 28 distancetrigger->setDistance(100); 29 29 distancetrigger->addTarget("Pawn"); … … 39 39 40 40 void Waypoint::activate(){ 41 orxout() << "activate function" << endl; 41 orxout() << "activate function" << endl; 42 42 ///++order; 43 43 waypointgroup->activateNext(); … … 48 48 //WorldEntity::getPosition() 49 49 //setOrientation() 50 50 51 51 52 52 void Waypoint::XMLEventPort(Element& xmlelement, XMLPort::Mode mode){ -
code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.cc
r11318 r11332 1 1 #include "Waypointarrow.h" 2 3 #include "util/Convert.h" 2 4 3 5 #include <OgreSceneNode.h> … … 5 7 #include "util/OrxAssert.h" 6 8 #include "core/CoreIncludes.h" 9 #include "core/command/ConsoleCommandIncludes.h" 10 7 11 8 12 namespace orxonox 9 13 { 10 14 RegisterClass(Waypointarrow); 15 // SetConsoleCommand("Waypointarrow", "toggleArrow", &Waypointarrow::toggleArrow); 16 11 17 12 18 Waypointarrow::Waypointarrow(Context* context) : StaticEntity(context) … … 42 48 */ 43 49 50 /* void Waypointarrow::toggleArrow(){ 51 if(model->getScale() == 3) 52 model->setScale(0); 53 else 54 model->setScale(3); 55 } 56 */ 44 57 45 58 WaypointGroup* Waypointarrow::getWaypointgroup() … … 71 84 72 85 73 // orxout() << "dsfsf" << waypoint_position.x<< endl;86 // orxout() << model->scale_ << endl; 74 87 //orxout() << "waypoint " << waypoint_position.x << "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl; 75 88 //orxout() << "model " << this->model->getWorldPosition().x << "model " << this->model->getWorldPosition().y << "model " << this->model->getWorldPosition().z << endl; -
code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.h
r11298 r11332 43 43 44 44 virtual void tick(float dt); 45 //static void toogleArrow(); 46 45 47 46 48
Note: See TracChangeset
for help on using the changeset viewer.