From 641bf33e4b807bb16b95fe262f07271bd1720afa Mon Sep 17 00:00:00 2001 From: DarioS Date: Thu, 23 Mar 2023 20:46:10 +0100 Subject: [PATCH] DataBeam : - modifica ingombro tagli inclinati per macchine con trascinatori tipo PF (BD.PRESS_ROLLER). --- LuaLibs/ProcessCut.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessCut.lua b/LuaLibs/ProcessCut.lua index 2205a51..cacc7f2 100644 --- a/LuaLibs/ProcessCut.lua +++ b/LuaLibs/ProcessCut.lua @@ -212,7 +212,7 @@ local function UpdateEncumbrance( Proc, vtN, dOvmHead, nRawId, b3Solid, b3Raw) if vtN:getZ() > 0.5 then dOffs = dOffs - 0.6 * Proc.Box:getDimX() elseif vtN:getZ() < -0.5 then - dOffs = dOffs - 0.2 * Proc.Box:getDimX() + dOffs = dOffs - EgtIf( BD.PRESS_ROLLER, 0.4, 0.2) * Proc.Box:getDimX() elseif ( abs( vtN:getY()) > 0.9 and vtN:getZ() > 0.2) then dOffs = dOffs - 0.3 * Proc.Box:getDimX() end @@ -222,7 +222,7 @@ local function UpdateEncumbrance( Proc, vtN, dOvmHead, nRawId, b3Solid, b3Raw) if vtN:getZ() > 0.5 then dOffs = dOffs - 0.6 * Proc.Box:getDimX() elseif vtN:getZ() < -0.5 then - dOffs = dOffs - 0.2 * Proc.Box:getDimX() + dOffs = dOffs - EgtIf( BD.PRESS_ROLLER, 0.4, 0.2) * Proc.Box:getDimX() elseif ( abs( vtN:getY()) > 0.9 and vtN:getZ() > 0.2) then dOffs = dOffs - 0.3 * Proc.Box:getDimX() end