Changeset 6999 for code/branches/presentation3/src
- Timestamp:
- May 27, 2010, 11:54:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/weapons/RocketController.cc
r6951 r6999 101 101 if (!this->getControllableEntity()) 102 102 return; 103 float dx = target.x-this->getControllableEntity()->getPosition().x;104 float dy = target.y-this->getControllableEntity()->getPosition().y;103 //float dx = target.x-this->getControllableEntity()->getPosition().x; 104 //float dy = target.y-this->getControllableEntity()->getPosition().y; 105 105 COUT(4)<<"\n diff: "; 106 106 COUT(4)<<target-this->getControllableEntity()->getPosition() << endl; … … 113 113 COUT(0)<<"\n";*/ 114 114 Vector2 coord = get2DViewdirection(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target); 115 float distance = (target - this->getControllableEntity()->getPosition()).length();115 //float distance = (target - this->getControllableEntity()->getPosition()).length(); 116 116 //Vector3D diff =target-this->rocket->getPosition(); 117 117 COUT(4) << "viewdirection: "<< coord << endl;
Note: See TracChangeset
for help on using the changeset viewer.