Changeset 9862 for code/branches/invaders/src/modules
- Timestamp:
- Dec 2, 2013, 4:42:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9859 r9862 56 56 if (player != NULL) 57 57 { 58 float newZ = abs(getPosition().x - player->getPosition().x) * (player->getPosition().z - getPosition().z);58 float newZ = 2/(pow(abs(getPosition().x - player->getPosition().x) * 0.01, 2) + 1) * (player->getPosition().z - getPosition().z); 59 59 // if (newZ < 0) 60 60 // newZ = (-100 < newZ)?-100:newZ;
Note: See TracChangeset
for help on using the changeset viewer.