Switch back to modelToWorldVisual. Perf is about the same and it moves smoothly with the model.

This commit is contained in:
esteldunedain 2016-02-08 16:38:26 -03:00
parent b358c4a8af
commit 1b912cdca0

View File

@ -75,7 +75,7 @@ _fnc_parameters = {
};
private _parameters = [_this, _fnc_parameters, _target, QGVAR(drawParameters), 0.1] call EFUNC(common,cachedCall);
_parameters set [2, _target modelToWorldVisual ((_target selectionPosition "pilot") vectorAdd [0,0,(_heightOffset + .3)])];
_parameters set [2, (ASLtoAGL eyePos _target) vectorAdd [0,0,_heightOffset + .3]];
drawIcon3D _parameters;