- Timestamp:
- Dec 3, 2014, 5:06:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.cc
r10142 r10151 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(); }54 44 } 55 45
Note: See TracChangeset
for help on using the changeset viewer.