Last change
on this file since 11475 was
11350,
checked in by maxima, 8 years ago
|
waypoints merged to presentation
|
File size:
1012 bytes
|
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 | |
---|
8 | namespace 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("cokebottle.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 | |
---|
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.