- Timestamp:
- Aug 12, 2005, 4:37:06 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4988 r4989 420 420 void PNode::softReparent(PNode* parentNode) 421 421 { 422 //this->setRelCoorSoft(this->getRelCoor()); 422 423 if (likely(this->toPosition == NULL)) 424 { 423 425 this->toPosition = new Vector(); 424 425 *this->toPosition = this->getRelCoor(); 426 *this->toPosition = this->getRelCoor(); 427 } 428 426 429 427 430 Vector tmp = this->getAbsCoor(); -
orxonox/trunk/src/world_entities/camera.cc
r4988 r4989 127 127 // this->target->setRelCoorSoft(Vector(10,0,0)); 128 128 129 this->target->softReparent("Player"); 129 if (!strcmp(this->target->getParent()->getName(), "Player")) 130 this->target->softReparent("TrackNode"); 131 else 132 this->target->softReparent("Player"); 133 130 134 // this->setParent("main-Turret"); 131 135 // this->setParentMode(PNODE_ALL);
Note: See TracChangeset
for help on using the changeset viewer.