From d9ae788ec0e27da0cefdf5c8e25ad8913c3c90f2 Mon Sep 17 00:00:00 2001 From: iobyte Date: Mon, 17 Jan 2022 16:29:48 +0000 Subject: [PATCH] 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 --- src/modules/graphic/osggraph/Viewer/OsgHUD.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/graphic/osggraph/Viewer/OsgHUD.cpp b/src/modules/graphic/osggraph/Viewer/OsgHUD.cpp index e27a09ed..58b32609 100644 --- a/src/modules/graphic/osggraph/Viewer/OsgHUD.cpp +++ b/src/modules/graphic/osggraph/Viewer/OsgHUD.cpp @@ -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 ), };