Changeset 4986 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Aug 12, 2005, 2:23:40 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/camera.cc
r4838 r4986 120 120 case VIEW_BEHIND: 121 121 this->toFovy = 120.0; 122 this->toRelCoor = Vector(-7, 0, 0); 122 this->toRelCoor = Vector(3.5, 0, 0); 123 this->target->setRelCoor(4,0,0); 124 /* this->setParent("main-Turret"); 125 this->setParentMode(PNODE_ALL); 126 this->target->setParent("Crosshair");*/ 123 127 break; 124 128 case VIEW_FRONT: -
orxonox/trunk/src/world_entities/camera.h
r4836 r4986 57 57 float farClip; //!< The far clipping plane. 58 58 59 Vector toRelCoor;//!< The relativeCoordinate to move the camera to.60 float toFovy;//!< The fovy-mode to iterate to.59 Vector toRelCoor; //!< The relativeCoordinate to move the camera to. 60 float toFovy; //!< The fovy-mode to iterate to. 61 61 }; 62 62 -
orxonox/trunk/src/world_entities/npc.cc
r4984 r4986 47 47 void NPC::tick(float dt) 48 48 { 49 this->shiftCoor((State::getCameraTarget()->getAbsCoor() - this->getAbsCoor()) *dt *10); 49 Vector direction = (State::getCameraTarget()->getAbsCoor() - this->getAbsCoor()); 50 51 //if (directin.len() < 100) 52 this->shiftCoor(direction *dt * 5 * exp(-direction.len()/30.0)); 50 53 51 54 } -
orxonox/trunk/src/world_entities/player.cc
r4975 r4986 92 92 93 93 Weapon* turret = new Turret(this->weaponMan); 94 turret->setName("main-Turret"); 94 95 Weapon* turret2 = new Turret(this->weaponMan); 95 96 this->weaponMan->addWeapon(wpLeft, 1, 0);
Note: See TracChangeset
for help on using the changeset viewer.