Changeset 6920 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Jan 31, 2006, 10:37:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/turret.cc
r6759 r6920 118 118 119 119 Quaternion quat; 120 Vector direction = this->getAbsCoor();/*this->getWeaponManager()->getFixedTarget()->getAbsCoor() - this->getAbsCoor();*/ 120 Vector direction; 121 if (this->getDefaultTarget() == NULL) 122 direction = this->getAbsCoor(); 123 else 124 direction = this->getDefaultTarget()->getAbsCoor() - this->getAbsCoor(); 121 125 122 126 direction.normalize();
Note: See TracChangeset
for help on using the changeset viewer.