diff --git a/LuaLibs/PreSimulationLib.lua b/LuaLibs/PreSimulationLib.lua index ae97163..869ba1f 100644 --- a/LuaLibs/PreSimulationLib.lua +++ b/LuaLibs/PreSimulationLib.lua @@ -124,14 +124,11 @@ local function GetCollisionPointsToCheck( Edge, dDepthToMachine) or AreSameOrOppositeVectorApprox( Edge.vtEdge, Z_AX()) -- aggiunta punti - -- inizio e fine solo se lato obliquo + table.insert( PointsToCheck, ptStart) if not bIsEdgeParallelToMainDirection then - table.insert( PointsToCheck, ptStart) - end - table.insert( PointsToCheck, ptMid) - if not bIsEdgeParallelToMainDirection then - table.insert( PointsToCheck, ptEnd) + table.insert( PointsToCheck, ptMid) end + table.insert( PointsToCheck, ptEnd) return PointsToCheck end