!2485 修复:铰链碰撞检测遇到复合实体不直接返回判断

pull/2242/MERGE
林三 10 months ago committed by ChenX
parent a8bbc3413f
commit f27c68c1ee

@ -1078,7 +1078,9 @@ export function IsBoxAndEntitysIntersect(checkEnts: Entity[], intersectEnts: Ent
if (parentcheckEntOCS) ocs = new Matrix4().multiplyMatrices(parentcheckEntOCS, ocs);
let ents = checkEnt.Entitys.filter(ent => ent instanceof ExtrudeHole || ent instanceof SweepSolid || ent instanceof ExtrudeSolid || ent instanceof HardwareCompositeEntity);
return IsBoxAndEntitysIntersect(ents, intersectEnts, ZNormal, translate, undefined, ocs, isParallel);
//没有碰撞不return 继续检测其他checkEnt
if (IsBoxAndEntitysIntersect(ents, intersectEnts, ZNormal, translate, undefined, ocs, isParallel))
return true;
}
else
{

Loading…
Cancel
Save