- Timestamp:
- Dec 5, 2014, 3:43:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.cc
r10151 r10158 42 42 SUPER(TowerDefenseEnemy, tick, dt); 43 43 44 //ArtificialController* controller = (ArtificialController*)this->getController(); 45 Vector3 ship = this->getRVWorldPosition(); 46 Vector3* endpoint = new Vector3(500, 700, 150); 47 48 float distance = ship.distance(*endpoint); 49 50 //orxout() << "distance" << distance << endl; 51 if(distance <50){ 52 orxout() << "ENEMY KILLED!!!!" << endl; 53 this->destroy(); } 44 54 } 45 55
Note: See TracChangeset
for help on using the changeset viewer.