diff --git a/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorTool.ts b/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorTool.ts index fec5c4231..45d9caec5 100644 --- a/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorTool.ts +++ b/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorTool.ts @@ -695,7 +695,10 @@ export class DrawDoorTool } else if (otherEnt instanceof HardwareCompositeEntity) //层板复合实体 铰链偏移 { + //不是铰链或者把手时跳过 if (!(isHinge || isHandle)) continue; + //是把手时 不是门板也跳过 + if (isHandle && !isDoor) continue; if (!IsBoxAndEntitysIntersect([otherEnt], [ironware], ZNormal, isDoor)) continue; if (isDoor) @@ -709,6 +712,10 @@ export class DrawDoorTool otherEnt.RelevanceHandle.push(ironware.Id); continue; } + + //把手不参与碰撞偏移 + if (isHandle) continue; + let hingeTr = ironware.Template.Object as TemplateRecord;//铰链模块 let hingeSpaceTr = hingeTr.Parent.Object as TemplateRecord;//铰链空间 let ironSize = ironBox.getSize(new Vector3);