From 010e1421c71fc60391128188a86141ee8dd5f956 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Tue, 8 Jul 2025 15:24:34 +0200 Subject: [PATCH] =?UTF-8?q?-=20in=20LapJoint,=20attacco=20laterale=20con?= =?UTF-8?q?=20sega=20a=20catena=20temporaneamente=20disabilitato,=20finch?= =?UTF-8?q?=C3=A8=20non=20si=20risolvono=20i=20problemi=20di=20movimentazi?= =?UTF-8?q?one=20in=20macchina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessLapJoint.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 2c3c8c1..298cde5 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -192,7 +192,8 @@ local function AssignQIdent( Proc) Q_STAIRCASE = '' Q_SAW_PLUS_CHAIN = 'Q11' Q_FORCE_CHAINSAW = 'Q12' - Q_NO_ROTATION = 'Q13' + -- TODO da riportare a Q13 quando è sistemata la gestione del movimento in macchina nell'attacco laterale + Q_CHAINSAW_FROM_SIDE = 'Q999' if ( Proc.Grp == 3 or Proc.Grp == 4) and Proc.Prc == 16 then Q_FORCE_BLADE = 'Q01' -- i @@ -967,7 +968,7 @@ function ProcessLapJoint.Classify( Proc, b3Raw) end end - local bNoRotation = ( EgtGetInfo( Proc.Id, Q_NO_ROTATION, 'i') or 0) == 1 + local bNoRotation = ( EgtGetInfo( Proc.Id, Q_CHAINSAW_FROM_SIDE, 'i') or 0) == 1 if bDown and bNoRotation then bDown = false end @@ -3094,7 +3095,7 @@ local function MakeByChainOrSaw( Proc, nPhase, nRawId, nPartId, nFacInd, return false, sErr end local bGoFromHead = true - local bAttackFromSide = ( ( EgtGetInfo( Proc.Id, Q_NO_ROTATION, 'i') or 0) == 1) + local bAttackFromSide = ( ( EgtGetInfo( Proc.Id, Q_CHAINSAW_FROM_SIDE, 'i') or 0) == 1) and ( Proc.Fct == 4) and ( Proc.Topology == 'Groove') -- se normale lungo Z è da sopra: si tenta attacco laterale se richiesto if AreSameOrOppositeVectorApprox( Proc.Face[ nFacInd + 1].VtN, Z_AX()) then