Changeset 9093
- Timestamp:
- Apr 20, 2012, 1:11:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/waypoints/src/orxonox/controllers/FormationController.cc
r9054 r9093 277 277 { 278 278 // I AM HERE 279 Vector3 v_temp = this->getControllableEntity()->get Position() * target;280 Quaternion quat = v_temp.getRotationTo(target) ;279 Vector3 v_temp = this->getControllableEntity()->getOrientation(); 280 Quaternion quat = v_temp.getRotationTo(target) * v_temp; 281 281 this->getControllableEntity()->rotate(quat); 282 282
Note: See TracChangeset
for help on using the changeset viewer.