Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1902 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
May 24, 2004, 12:13:56 AM (21 years ago)
Author:
patrick
Message:

orxonox/trunk: collision npc-player added

Location:
orxonox/trunk/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/orxonox.cc

    r1900 r1902  
    107107  localPlayer = new Player;
    108108  localPlayer->setPosition(0.0, -10.0, 3.0);
     109  localPlayer->setCollisionRadius(2.0);
    109110  io = new InputOutput(world, localPlayer);
    110111  (*world).addPlayer(localPlayer);
     
    136137  /* this is very very unsafe: io could be uninit */
    137138  io->setPlayerStep(19.2 / fps); /* set player to propper speed */
    138   //localPlayer->shootLaser->setShootStep(fps/48.0); /* set shoot speed */
     139  localPlayer->shootLaser->setShootStep(fps/48.0); /* set shoot speed */
    139140  fps = 0;
    140141  inputEnabled = true;
  • orxonox/trunk/core/world.cc

    r1900 r1902  
    263263  /* second: check if any player hits an enemy */
    264264
    265   /*
     265 
    266266  tmpPlayer = lastPlayer;
    267267  while( tmpPlayer != null )
     
    283283    }
    284284 
    285   */
     285 
    286286
    287287  /* third: check if any enemy shoots a player */
Note: See TracChangeset for help on using the changeset viewer.