Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3308 in orxonox.OLD


Ignore:
Timestamp:
Dec 30, 2004, 1:18:58 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: fixed a bug that prevented the program from changing to a new level (SEGFAULT), NOT yet following track

Location:
orxonox/branches/parenting/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/null_parent.h

    r3302 r3308  
    99
    1010#include "stdincl.h"
    11 #include "world_entity.h"
     11#include "p_node.h"
    1212
    1313
    14 class NullParent : public WorldEntity {
     14class NullParent : public PNode {
    1515
    1616 public:
  • orxonox/branches/parenting/src/world.cc

    r3307 r3308  
    169169            this->localPlayer->addChild (this->localCamera);
    170170           
    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 ();
    175174            WorldEntity* env = new Environment();
    176             this->spawn(env, plc);
    177             */
     175            this->spawn(env, es, qs);
     176
    178177
    179178            break;
     
    202201            // create a player
    203202            WorldEntity* myPlayer = new Player();
     203            myPlayer->setName ("player");
    204204            this->spawn(myPlayer);
    205205            this->localPlayer = myPlayer;           
     
    210210           
    211211            // bind camera
    212             this->localCamera = new Camera(this);
     212            this->localCamera = new Camera (this);
     213            this->localCamera->setName ("camera");
    213214            this->getCamera()->bind (myPlayer);
     215            this->localPlayer->addChild (this->localCamera);
    214216            break;
    215217          }
Note: See TracChangeset for help on using the changeset viewer.