Changeset 9122 in orxonox.OLD for branches/presentation/src/world_entities/creatures
- Timestamp:
- Jul 4, 2006, 2:08:14 PM (19 years ago)
- Location:
- branches/presentation/src/world_entities/creatures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r9110 r9122 191 191 this->getWeaponManager().getFixedTarget()->setParent(State::getCameraTargetNode()); 192 192 this->getWeaponManager().getFixedTarget()->setRelCoor(0,0,0); 193 194 195 AABB* box = this->getModelAABB();196 if( box != NULL)197 {198 State::getCameraNode()->setRelCoor(0, box->halfLength[1] * 2.0f, 0);199 State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * 2.0f, 0);200 201 this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * 2.0f - 0.7, 1.1));202 this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * 2.0f, 0.0));203 }204 193 } 205 194 … … 387 376 } 388 377 389 390 391 378 void FPSPlayer::respawn( ) 379 { 380 Playable::respawn(); 381 382 AABB* box = this->getModelAABB(); 383 if( box != NULL) 384 { 385 float f = 1.3f; 386 State::getCameraNode()->setRelCoor(0, box->halfLength[1] * f, 0); 387 State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * f, 0); 388 389 this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1)); 390 this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0)); 391 } 392 } 393 394 395 396 -
branches/presentation/src/world_entities/creatures/fps_player.h
r9110 r9122 26 26 27 27 virtual void reset(); 28 28 29 virtual void respawn(); 29 30 30 31 virtual void tick(float time);
Note: See TracChangeset
for help on using the changeset viewer.