- Timestamp:
- Nov 28, 2016, 4:04:45 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
r11287 r11309 26 26 distancetrigger = new DistanceTrigger(this->getContext()); 27 27 distancetrigger->setDistance(100); 28 distanceTrigger_->addTarget("Pawn"); 29 this->addEventSource(distanceTrigger_, "explode"); 30 28 31 this->attach(distancetrigger); 29 32 } -
code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.cc
r11298 r11309 63 63 Waypoint* WaypointGroup::getActive(){ 64 64 if (activeWaypoint == nullptr){ 65 orxout() << "OOOOOOOOOO" << endl; 66 65 orxout() << "Null Pointer" << endl; 67 66 activateNext(); 68 67 69 } 68 } 69 //else if (activeWaypoint->) 70 70 return activeWaypoint; 71 71 } … … 76 76 object->enable_waypoint(); 77 77 activeWaypoint = object; 78 break; 78 79 } 79 80 } -
code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.cc
r11307 r11309 61 61 62 62 if (getWaypointgroup() == nullptr){ 63 63 orxout() << "Second" << endl; 64 64 65 65 return; … … 72 72 Vector3 waypoint_position = waypoint->getWorldPosition(); 73 73 74 Vector3 trial = waypoint_position - this->getWorldPosition();75 74 76 75 //orxout() << "dsfsf" << waypoint_position.x << endl; 77 orxout() << "waypoint " << waypoint_position.x << "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl; 78 orxout() << "model " << this->model->getWorldPosition().x << "model " << this->model->getWorldPosition().y << "model " << this->model->getWorldPosition().z << endl; 79 orxout() << "this " << this->getWorldPosition().x << "this " << this->getWorldPosition().y << "this " << this->getWorldPosition().z << endl; 80 orxout() << "trial " << trial.x << "trial " << trial.y << "trial " << trial.z << endl; 76 // orxout() << "waypoint " << waypoint_position.x << "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl; 77 // orxout() << "model " << this->model->getWorldPosition().x << "model " << this->model->getWorldPosition().y << "model " << this->model->getWorldPosition().z << endl; 78 // orxout() << "this " << this->getWorldPosition().x << "this " << this->getWorldPosition().y << "this " << this->getWorldPosition().z << endl; 79 // orxout() << "trial " << trial.x << "trial " << trial.y << "trial " << trial.z << endl; 80 81 81 82 82 Vector3 origin = model->getWorldPosition();;
Note: See TracChangeset
for help on using the changeset viewer.