Changeset 10096 in orxonox.OLD for branches/playability/src/world_entities
- Timestamp:
- Dec 19, 2006, 2:52:29 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10095 r10096 55 55 #include "util/loading/load_param.h" 56 56 #include "time.h" 57 58 #include "track/track.h" 57 59 58 60 … … 477 479 else 478 480 this->secWeaponMan.releaseFire(); 481 482 // Tracktick 483 if(this->entityTrack) 484 this->entityTrack->tick(time); 479 485 480 486 … … 760 766 this->travelNode->updateNode(0.01f); 761 767 762 this->setParent(this->travelNode);768 //this->setParent(this->travelNode); 763 769 this->setRelCoor(0,0,0); 764 770 765 State::getCameraNode()->setParentSoft(this->travelNode); 771 //State::getCameraNode()->setParentSoft(this->travelNode); 772 State::getCameraNode()->setParentSoft(this); 766 773 State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0); 767 State::getCameraTargetNode()->setParentSoft(this->travelNode); 774 //State::getCameraTargetNode()->setParentSoft(this->travelNode); 775 State::getCameraTargetNode()->setParentSoft(this); 768 776 State::getCameraTargetNode()->setRelCoorSoft(0,0,0); 769 777 -
branches/playability/src/world_entities/world_entity.cc
r10088 r10096 168 168 void WorldEntity::addTrack(const TiXmlElement* root) 169 169 { 170 171 this->entityTrack = new Track(); 172 this->setParent(this->entityTrack->getTrackNode()); 173 this->entityTrack->getTrackNode()->setParentMode(PNODE_ALL); 170 174 LOAD_PARAM_START_CYCLE(root, element); 171 175 { … … 174 178 } 175 179 LOAD_PARAM_END_CYCLE(element); 180 181 176 182 } 177 183 … … 635 641 */ 636 642 void WorldEntity::tick(float time) 637 {} 643 { 644 } 638 645 639 646 -
branches/playability/src/world_entities/world_entity.h
r10088 r10096 221 221 bool bOnGround; //!< true if this entity is standing on the ground 222 222 223 224 Track* entityTrack; //!< this is the track this entity follows (or NULL if none)225 226 223 protected: 227 224 Vector velocity; //!< speed of the entity 225 Track* entityTrack; //!< this is the track this entity follows (or NULL if none) 228 226 229 227 };
Note: See TracChangeset
for help on using the changeset viewer.