Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.cc @ 11274

Last change on this file since 11274 was 11274, checked in by ooguz, 7 years ago

waypoints to modules

File size: 1.1 KB
Line 
1#include "Waypointarrow.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(Waypointarrow);
11
12    Waypointarrow::Waypointarrow(Context* context) : StaticEntity(context)
13    {
14        RegisterObject(Waypointarrow);
15        model = new Model(this->getContext());
16        model->setMeshSource("Arrow.mesh");  // Name of the arrow file for now bottle
17        this->attach(model);
18        model->setScale(3);
19        model->setOrientation(Vector3(0,0,-1));
20        model->setPosition(Vector3(0,15,0));
21    }
22
23    Waypointarrow::~Waypointarrow()
24    {
25    }
26
27     
28
29
30    void Waypointarrow::XMLPort(Element& xmlelement, XMLPort::Mode mode){
31        SUPER(Waypointarrow, XMLPort, xmlelement, mode); // From the SpaceShip.cc file
32        //XMLPortParamTemplate(WorldEntity, "orientation", setOrientation, getOrientation, xmlelement, mode, Vector3)
33
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.