Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 29, 2014, 11:31:23 AM (11 years ago)
Author:
muemart
Message:

Revert changes to FormationController… keep the dirt to myself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turretFS14/src/orxonox/controllers/FormationController.cc

    r10039 r10043  
    277277        }
    278278
    279         Vector2 coord = get2DViewcoordinates(this->getControllableEntity()->getWorldPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);
    280         float distance = (target - this->getControllableEntity()->getWorldPosition()).length();
     279        Vector2 coord = get2DViewcoordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);
     280        float distance = (target - this->getControllableEntity()->getPosition()).length();
    281281        float rotateX = clamp(coord.x * 10, -1.0f, 1.0f);
    282282        float rotateY = clamp(coord.y * 10, -1.0f, 1.0f);
Note: See TracChangeset for help on using the changeset viewer.