Changeset 9859 for code/branches/invaders/src
- Timestamp:
- Dec 2, 2013, 4:28:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9858 r9859 56 56 if (player != NULL) 57 57 { 58 float newZ = player->getPosition().z - getPosition().z;59 if (newZ < 0)60 newZ = (-100 < newZ)?-100:newZ;61 else62 newZ = (100 > newZ)?100:newZ;58 float newZ = abs(getPosition().x - player->getPosition().x) * (player->getPosition().z - getPosition().z); 59 // if (newZ < 0) 60 // newZ = (-100 < newZ)?-100:newZ; 61 // else 62 // newZ = (100 > newZ)?100:newZ; 63 63 setVelocity(Vector3(1000 - level * 100 , 0, newZ)); 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.