Update NN3DWalkers.cpp
delete m_timeSeriesCanvas, otherwise the windows accumulate at restart make text a little bit smaller, too much overlap. If this has issues, please add a dropdown menu for text ;-)
This commit is contained in:
@@ -129,6 +129,7 @@ public:
|
||||
|
||||
virtual ~NN3DWalkersExample()
|
||||
{
|
||||
delete m_timeSeriesCanvas;
|
||||
}
|
||||
|
||||
void initPhysics();
|
||||
@@ -1021,7 +1022,7 @@ void NN3DWalkersExample::drawMarkings() {
|
||||
btVector3 walkerPosition = m_walkersInPopulation[i]->getPosition();
|
||||
char performance[20];
|
||||
sprintf(performance, "%.2f m", btSqrt(m_walkersInPopulation[i]->getDistanceFitness()));
|
||||
m_guiHelper->drawText3D(performance,walkerPosition.x(),walkerPosition.y()+1,walkerPosition.z(),3);
|
||||
m_guiHelper->drawText3D(performance,walkerPosition.x(),walkerPosition.y()+1,walkerPosition.z(),1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user