Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11332


Ignore:
Timestamp:
Dec 12, 2016, 3:17:21 PM (8 years ago)
Author:
ooguz
Message:

Last Commit (waypointscale ist 0)

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  
    2121        model->setMeshSource("cube.mesh");  // Name of the arrow file for now bottle
    2222        this->attach(model);
    23         model->setScale(3);
     23        model->setScale(0);
    2424        //model->setOrientation(Vector3(0,0,-1));
    2525        model->setPosition(Vector3(0.0,0.0,0.0));        // this is wrong, it has to be triggered
    2626        waypoint_actived = false;
    27         distancetrigger = new DistanceTrigger(this->getContext());   
     27        distancetrigger = new DistanceTrigger(this->getContext());
    2828        distancetrigger->setDistance(100);
    2929        distancetrigger->addTarget("Pawn");
     
    3939
    4040    void Waypoint::activate(){
    41         orxout() << "activate function" << endl; 
     41        orxout() << "activate function" << endl;
    4242        ///++order;
    4343        waypointgroup->activateNext();
     
    4848     //WorldEntity::getPosition()
    4949     //setOrientation()
    50  
     50
    5151
    5252    void Waypoint::XMLEventPort(Element& xmlelement, XMLPort::Mode mode){
  • code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.cc

    r11318 r11332  
    11#include "Waypointarrow.h"
     2
     3#include "util/Convert.h"
    24
    35#include <OgreSceneNode.h>
     
    57#include "util/OrxAssert.h"
    68#include "core/CoreIncludes.h"
     9#include "core/command/ConsoleCommandIncludes.h"
     10
    711
    812namespace orxonox
    913{
    1014    RegisterClass(Waypointarrow);
     15    // SetConsoleCommand("Waypointarrow", "toggleArrow", &Waypointarrow::toggleArrow);
     16
    1117
    1218    Waypointarrow::Waypointarrow(Context* context) : StaticEntity(context)
     
    4248*/
    4349
     50 /*   void Waypointarrow::toggleArrow(){
     51        if(model->getScale() == 3)
     52            model->setScale(0);
     53        else
     54            model->setScale(3);
     55    }
     56*/
    4457
    4558    WaypointGroup* Waypointarrow::getWaypointgroup()
     
    7184
    7285
    73         //orxout() << "dsfsf" << waypoint_position.x << endl;
     86        // orxout() << model->scale_ << endl;
    7487        //orxout() << "waypoint " << waypoint_position.x <<  "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl;
    7588        //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  
    4343
    4444            virtual void tick(float dt);
     45            //static void toogleArrow();
     46
    4547
    4648
Note: See TracChangeset for help on using the changeset viewer.