Changeset 5382 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 15, 2005, 8:22:30 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r5357 r5382 120 120 case VIEW_NORMAL: 121 121 this->toFovy = 60.0; 122 this->s oftReparent("TrackNode");123 this->target->s oftReparent("TrackNode");122 this->setParentSoft("TrackNode"); 123 this->target->setParentSoft("TrackNode"); 124 124 this->setRelCoorSoft(-10, 5, 0); 125 125 this->target->setRelCoorSoft(0,0,0); … … 131 131 132 132 if (!strcmp(this->target->getParent()->getName(), "Player")) 133 this->target->s oftReparent("TrackNode");133 this->target->setParentSoft("TrackNode"); 134 134 else 135 this->target->s oftReparent("Player");135 this->target->setParentSoft("Player"); 136 136 this->getParent()->debug(0); 137 137 138 138 // this->setParent("main-Turret"); 139 139 // this->setParentMode(PNODE_ALL); 140 // this->target->s oftReparent("Player");140 // this->target->setParentSoft("Player"); 141 141 142 142 break; 143 143 case VIEW_FRONT: 144 144 this->toFovy = 120.0; 145 this->s oftReparent("Player");146 this->target->s oftReparent("Player");145 this->setParentSoft("Player"); 146 this->target->setParentSoft("Player"); 147 147 this->setRelCoorSoft(4, 0, 0, 5); 148 148 this->target->setRelCoorSoft(Vector(10,0,0), 5); … … 151 151 case VIEW_LEFT: 152 152 this->toFovy = 90; 153 this->s oftReparent("TrackNode");154 this->target->s oftReparent("TrackNode");153 this->setParentSoft("TrackNode"); 154 this->target->setParentSoft("TrackNode"); 155 155 this->setRelCoorSoft(0, 1, -10, .5); 156 156 this->target->setRelCoorSoft(0,0,0); … … 158 158 case VIEW_RIGHT: 159 159 this->toFovy = 90; 160 this->s oftReparent("TrackNode");161 this->target->s oftReparent("TrackNode");160 this->setParentSoft("TrackNode"); 161 this->target->setParentSoft("TrackNode"); 162 162 this->setRelCoorSoft(Vector(0, 1, 10)); 163 163 this->target->setRelCoorSoft(0,0,0); … … 165 165 case VIEW_TOP: 166 166 this->toFovy= 120; 167 this->s oftReparent("TrackNode");168 this->target->s oftReparent("TrackNode");167 this->setParentSoft("TrackNode"); 168 this->target->setParentSoft("TrackNode"); 169 169 this->setRelCoorSoft(Vector(0, 10, 0)); 170 170 this->target->setRelCoorSoft(0,0,0); … … 215 215 // switching back to Modeling Matrix 216 216 glMatrixMode (GL_MODELVIEW); 217 //this->target->getParent()->getParent()->debugDraw(0, 2, Vector(1,0,0));217 this->target->getParent()->getParent()->debugDraw(0, 2, Vector(1,0,0)); 218 218 } 219 219 -
trunk/src/world_entities/weapons/test_gun.cc
r5357 r5382 62 62 Animation3D* animation3 = this->getAnimation(WS_DEACTIVATING, this); 63 63 //parent->addChild(this->objectComponent1, PNODE_ALL); 64 this->addChild(this->objectComponent1 , PNODE_ALL);64 this->addChild(this->objectComponent1); 65 65 66 66 animation1->setInfinity(ANIM_INF_CONSTANT);
Note: See TracChangeset
for help on using the changeset viewer.