Changeset 10043 for code/branches/turretFS14
- Timestamp:
- Apr 29, 2014, 11:31:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/orxonox/controllers/FormationController.cc
r10039 r10043 277 277 } 278 278 279 Vector2 coord = get2DViewcoordinates(this->getControllableEntity()->get WorldPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);280 float distance = (target - this->getControllableEntity()->get WorldPosition()).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(); 281 281 float rotateX = clamp(coord.x * 10, -1.0f, 1.0f); 282 282 float rotateY = clamp(coord.y * 10, -1.0f, 1.0f);
Note: See TracChangeset
for help on using the changeset viewer.