Changeset 10891 for code/branches/campaignHS15/src/orxonox/controllers
- Timestamp:
- Nov 30, 2015, 1:08:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.cc
r10888 r10891 216 216 hardcoded_projectile_speed, this->target_->getWorldPosition(), 217 217 this->target_->getVelocity()); 218 if (!newPositionOfTarget.isNaN()) 218 //Vector3.isNaN() is what I used on my machine and it worked... 219 if (!(std::isnan(newPositionOfTarget.x) || std::isnan(newPositionOfTarget.y) || std::isnan(newPositionOfTarget.z))) 219 220 { 220 221 this->setPositionOfTarget(newPositionOfTarget);
Note: See TracChangeset
for help on using the changeset viewer.