fix OSG HUD force feedback graph

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7911 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2ccbf84da7df2b6acb79cd54a44d473d9e9adc09
Former-commit-id: 7aa4d0424584ff361601b82b925ec1fcb564c735
This commit is contained in:
iobyte 2022-01-17 16:29:48 +00:00
parent 584465efb1
commit d9ae788ec0

View file

@ -320,7 +320,7 @@ void OSGPLOT::update(tSituation *s, const SDFrameInfo* frameInfo,
else if(this->Ydata == "forcefeedback") y = (float)forceFeedback.force;
//get z value
float z=(float)0;
float z = 0.1f;
//add the new point
this->appendDataPoint(x,y,z);
@ -413,12 +413,12 @@ void OSGPLOT::recalculateDrawnPoint()
osg::Vec3(
this->positionX,
((this->referenceLineAtValue - this->minValue) / (this->maxValue - this->minValue) * this->height) + this->positionY,
0.0f
0.1f
),
osg::Vec3(
this->positionX + this->width,
((this->referenceLineAtValue - this->minValue) / (this->maxValue-this->minValue) * this->height) + this->positionY,
0.0f
0.1f
),
};