Changeset 4986 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Aug 12, 2005, 2:23:40 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.cc
r4985 r4986 348 348 while (enumSource) 349 349 { 350 if (likely(enumSource->getNode() !=NULL))350 if (likely(enumSource->getNode() != NULL)) 351 351 { 352 352 alSource3f(enumSource->getID(), AL_POSITION, -
orxonox/trunk/src/story_entities/world.cc
r4979 r4986 440 440 { 441 441 WorldEntity* tmp = new NPC(); 442 tmp->setAbsCoor(((float)rand()/RAND_MAX) * 2000, 40+ (float)rand()/RAND_MAX*30, ((float)rand()/RAND_MAX -.5) *500);442 tmp->setAbsCoor(((float)rand()/RAND_MAX) * 5000, 50/*+ (float)rand()/RAND_MAX*20*/, ((float)rand()/RAND_MAX -.5) *100); 443 443 this->spawn(tmp); 444 444 -
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.