Merge pull request #3342 from acemod/vehicleInteractionDistance

Uniformize interaction distance for vehicle based on bounding box
This commit is contained in:
Glowbal
2016-06-20 09:55:55 +02:00
committed by GitHub
5 changed files with 96 additions and 11 deletions

View File

@ -90,9 +90,8 @@ if (_activeActionTree isEqualTo []) exitWith {false};
BEGIN_COUNTER(fnc_renderMenus);
// IGNORE_PRIVATE_WARNING(_cameraPosASL,_cameraDir);
if (count _pos > 2) then {
_sPos pushBack (((AGLtoASL _pos) vectorDiff _cameraPosASL) vectorDotProduct _cameraDir);
_sPos pushBack (((AGLtoASL _pos) vectorDiff GVAR(cameraPosASL)) vectorDotProduct GVAR(cameraDir));
} else {
_sPos pushBack 0;
};