Changeset 3308 in orxonox.OLD for orxonox/branches/parenting
- Timestamp:
- Dec 30, 2004, 1:18:58 AM (20 years ago)
- Location:
- orxonox/branches/parenting/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/null_parent.h
r3302 r3308 9 9 10 10 #include "stdincl.h" 11 #include " world_entity.h"11 #include "p_node.h" 12 12 13 13 14 class NullParent : public WorldEntity{14 class NullParent : public PNode { 15 15 16 16 public: -
orxonox/branches/parenting/src/world.cc
r3307 r3308 169 169 this->localPlayer->addChild (this->localCamera); 170 170 171 /* 172 Placement* plc = new Placement; 173 plc->r = Vector(100, 10, 10); 174 plc->w = Quaternion(); 171 172 Vector* es = new Vector (20, 0, 10); 173 Quaternion* qs = new Quaternion (); 175 174 WorldEntity* env = new Environment(); 176 this->spawn(env, plc);177 */ 175 this->spawn(env, es, qs); 176 178 177 179 178 break; … … 202 201 // create a player 203 202 WorldEntity* myPlayer = new Player(); 203 myPlayer->setName ("player"); 204 204 this->spawn(myPlayer); 205 205 this->localPlayer = myPlayer; … … 210 210 211 211 // bind camera 212 this->localCamera = new Camera(this); 212 this->localCamera = new Camera (this); 213 this->localCamera->setName ("camera"); 213 214 this->getCamera()->bind (myPlayer); 215 this->localPlayer->addChild (this->localCamera); 214 216 break; 215 217 }
Note: See TracChangeset
for help on using the changeset viewer.