Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
luca.mazzoleni
2024-01-31 11:34:00 +01:00
5 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -615,7 +615,8 @@ local function UpdateEncumbrance( Proc, nRawId, b3Raw, b3Solid)
if Proc.Fct > 2 then return end
-- eventuale segnalazione ingombro di testa o coda
local dMinHIng = min( 0.5 * BD.VICE_MINH, 0.5 * b3Raw:getDimZ())
if Proc.Box:getDimZ() > dMinHIng and Proc.Box:getMin():getZ() < b3Raw:getMin():getZ() + dMinHIng then
local dMinZ = max( BD.MIN_HEIGHT, 0.35 * b3Raw:getDimZ())
if Proc.Box:getDimZ() > dMinHIng and Proc.Box:getMin():getZ() < b3Raw:getMin():getZ() + dMinZ then
if Proc.Head then
local dOffs = b3Solid:getMax():getX() - Proc.Box:getMin():getX()
BL.UpdateHCING( nRawId, dOffs)