Changeset 9337 for code/branches/presentation2012merge/src/modules/docking
- Timestamp:
- Jul 29, 2012, 11:02:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/docking/DockingController.cc
r8858 r9337 60 60 61 61 float distance = (this->dock_->getWorldPosition() - entity->getPosition()).length(); 62 Vector2 coord = get2DView direction( // I don't understand this too62 Vector2 coord = get2DViewcoordinates( // I don't understand this too 63 63 entity->getPosition(), 64 64 entity->getOrientation() * WorldEntity::FRONT, … … 70 70 if (distance > 10) 71 71 { 72 entity->rotateYaw(-1.0f * 0.8f * sgn(coord.x) * coord.x*coord.x);73 entity->rotatePitch(0.8f * sgn(coord.y) * coord.y*coord.y);72 entity->rotateYaw(-1.0f * 0.8f * clamp(coord.x * 10, -1.0f, 1.0f)); 73 entity->rotatePitch(0.8f * clamp(coord.y * 10, -1.0f, 1.0f)); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.