Changeset 3527 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Mar 13, 2005, 8:49:01 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3526 r3527 221 221 // Create SkySphere 222 222 skySphere = new Skysphere("../data/pictures/sky-replace.jpg"); 223 this->localPlayer->addChild(this->skySphere); 223 this->localCamera->addChild(this->skySphere); 224 this->skySphere->setMode(MOVEMENT); 224 225 225 226 /*monitor progress*/ … … 230 231 env->setName ("env"); 231 232 this->spawn(env); 232 this->trackManager->setBindSlave(env);233 233 234 234 Vector* es = new Vector (50, 2, 0); … … 249 249 case DEBUG_WORLD_1: 250 250 { 251 /*252 this->testCurve = new UPointCurve();253 this->testCurve->addNode(Vector( 0, 0, 0));254 this->testCurve->addNode(Vector(10, 0, 5));255 this->testCurve->addNode(Vector(20, -5,-5));256 this->testCurve->addNode(Vector(30, 5, 10));257 this->testCurve->addNode(Vector(40, 0,-10));258 this->testCurve->addNode(Vector(50, 0,-10));259 */260 261 251 this->nullParent = NullParent::getInstance (); 262 252 this->nullParent->setName ("NullParent"); -
orxonox/trunk/src/track_manager.cc
r3522 r3527 46 46 this->curve = NULL; 47 47 this->children = NULL; 48 49 this->history = NULL; 50 48 51 this->condFunc = &TrackElement::random; 49 52 } … … 645 648 && this->currentTrackElem->children) 646 649 { 647 if (this->currentTrackElem->jumpTime >0)650 if (this->currentTrackElem->jumpTime != 0.0) 648 651 this->jumpTo(this->localTime + this->currentTrackElem->jumpTime); 652 // jump to the next TrackElement and also set the history of the new Element to the old one. 653 TrackElement* tmpHistoryElem = this->currentTrackElem; 649 654 this->currentTrackElem = this->currentTrackElem->children[this->choosePath(this->currentTrackElem)]; 655 this->currentTrackElem->history = tmpHistoryElem; 650 656 } 651 657 if (this->bindSlave) -
orxonox/trunk/src/track_manager.h
r3522 r3527 48 48 int childCount; //!< The number of Children This TrackElement has. 49 49 TrackElement** children; //!< A TrackElement can have a Tree of following TrackElements. 50 51 // runtime 52 TrackElement* history; //!< a pointer to the last TrackElement we were on. This is if you want to walk the path backwards again. 50 53 51 54 // CONDITION FUNCTIONS and STUFF
Note: See TracChangeset
for help on using the changeset viewer.