Skip to content
Snippets Groups Projects
Commit 850bd75c authored by Oz Linden's avatar Oz Linden
Browse files

storm-1622 modify wind vector visualization to always be 25m over avatar

parent 2b234bc0
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,7 @@ void LLToolSelectRect::handleRectangleSelection(S32 x, S32 y, MASK mask)
gViewerWindow->setup3DRender();
}
const F32 WIND_ALTITUDE = 180.f;
const F32 WIND_RELATIVE_ALTITUDE = 25.f;
void LLWind::renderVectors()
{
......@@ -254,7 +254,7 @@ void LLWind::renderVectors()
gGL.pushMatrix();
LLVector3 origin_agent;
origin_agent = gAgent.getPosAgentFromGlobal(mOriginGlobal);
gGL.translatef(origin_agent.mV[VX], origin_agent.mV[VY], WIND_ALTITUDE);
gGL.translatef(origin_agent.mV[VX], origin_agent.mV[VY], gAgent.getPositionAgent().mV[VZ] + WIND_RELATIVE_ALTITUDE);
for (j = 0; j < mSize; j++)
{
for (i = 0; i < mSize; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment