Changeset 6871 in orxonox.OLD for trunk/src/world_entities/space_ships/helicopter.cc
- Timestamp:
- Jan 30, 2006, 9:39:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/helicopter.cc
r6805 r6871 213 213 } 214 214 215 void Helicopter::attachCamera() 216 { 215 void Helicopter::enter() 216 { 217 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true); 217 218 State::getCamera()->setParentSoft(this->getWeaponManager()->getFixedTarget()); 218 219 State::getCameraTarget()->setParentSoft(this->getWeaponManager()->getFixedTarget()); 219 220 }221 222 223 void Helicopter::enter()224 {225 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);226 this->attachCamera();227 228 229 220 } 230 221
Note: See TracChangeset
for help on using the changeset viewer.