Changeset 4966 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Jul 28, 2005, 5:53:15 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/turret.cc
r4965 r4966 93 93 Vector direction = this->getWeaponManager()->getFixedTarget()->getAbsCoor() - this->getAbsCoor(); 94 94 direction.normalize(); 95 Quaternion quat = Quaternion(direction, Vector(0,1,0)) * Quaternion ( -M_PI_2, Vector(0,1,0)) ;95 Quaternion quat = Quaternion(direction, this->getParent()->getAbsDir().apply(Vector(0,1,0))) * Quaternion ( -M_PI_2, Vector(0,1,0)) ; 96 96 97 97 this->setAbsDir(quat);
Note: See TracChangeset
for help on using the changeset viewer.