Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5568 in orxonox.OLD for branches/world_entities/src


Ignore:
Timestamp:
Nov 15, 2005, 2:46:25 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/world_entities: smoother aiming, and also displaying Distance (this is not too nice, but quite good to explain a few Things …

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/weapons/aim.cc

    r5567 r5568  
    153153
    154154  char outputText[100];
    155   sprintf(outputText, "distance: %f\n", (this->source->getAbsCoor() - this->getAbsCoor()).len());
     155  sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len());
    156156  this->text->setText(outputText);
    157157
Note: See TracChangeset for help on using the changeset viewer.