Rev | Line | |
---|
[11230] | 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 | |
---|
| 8 | namespace orxonox |
---|
| 9 | { |
---|
| 10 | RegisterClass(Waypoint); |
---|
| 11 | |
---|
| 12 | Waypoint::Waypoint(Context* context) : StaticEntity(context) |
---|
| 13 | { |
---|
| 14 | RegisterObject(Waypoint); |
---|
[11243] | 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 |
---|
[11230] | 20 | } |
---|
| 21 | |
---|
| 22 | Waypoint::~Waypoint() |
---|
| 23 | { |
---|
| 24 | } |
---|
| 25 | |
---|
[11237] | 26 | |
---|
[11243] | 27 | WorldEntity::setDirection |
---|
| 28 | WorldEntity::getPosition() |
---|
| 29 | setOrientation() |
---|
| 30 | |
---|
| 31 | |
---|
[11237] | 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 | |
---|
[11230] | 40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.