SH-3909 Support avatar height offset
Adding a new visual param that allows users to manually adjust an offset for how far off the ground (+ or -) their avatar's root bone is. Supports the +-2m range people are used to adjusting in their viewers, but new implementation should support server-generated appearances. Conflicts: indra/newview/character/avatar_lad.xml indra/newview/llagent.cpp indra/newview/llcallingcard.cpp indra/newview/skins/default/xui/en/strings.xml
This commit is contained in:
committed by
Latif Khalifa
parent
ad03c27805
commit
07850410b5
@@ -190,7 +190,7 @@ LLVector3d LLAvatarTracker::getGlobalPos()
|
||||
global_pos = avatarp->getPositionGlobal();
|
||||
// HACK - for making the tracker point above the avatar's head
|
||||
// rather than its groin
|
||||
global_pos.mdV[VZ] += 0.7f * avatarp->mBodySize.mV[VZ];
|
||||
global_pos.mdV[VZ] += 0.7f * (avatarp->mBodySize.mV[VZ] + avatarp->mAvatarOffset.mV[VZ]);
|
||||
|
||||
mTrackingData->mGlobalPositionEstimate = global_pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user