Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/orxonox/worldentities/Waypoint.cc @ 11243

Last change on this file since 11243 was 11243, checked in by ooguz, 8 years ago

Waypointarrow und Waypoint Klassen

File size: 1.0 KB
Line 
1#include "Waypoint.h"
2
3#include <OgreSceneNode.h>
4#include <BulletDynamics/Dynamics/btRigidBody.h>
5#include "util/OrxAssert.h"
6#include "core/CoreIncludes.h"
7
8namespace orxonox
9{
10    RegisterClass(Waypoint);
11
12    Waypoint::Waypoint(Context* context) : StaticEntity(context)
13    {
14        RegisterObject(Waypoint);
15        model = new Model(this->getContext());
16        model->setMeshSource("cube.mesh");  // Name of the arrow file for now bottle
17        model->setScale(3);
18        //model->setOrientation(Vector3(0,0,-1));
19        model->setPosition(this->getPosition());        // this is wrong, it has to be triggered
20    }
21
22    Waypoint::~Waypoint()
23    {
24    }
25
26
27     WorldEntity::setDirection
28     WorldEntity::getPosition()
29     setOrientation()
30
31
32    void Waypoint::XMLPort(Element& xmlelement, XMLPort::Mode mode){
33        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 
36
37    }
38
39
40}
Note: See TracBrowser for help on using the repository browser.