This commit is contained in:
joylink_zhaoerwei 2023-08-30 13:12:30 +08:00
parent 79b2aa189e
commit 4f261c9097

View File

@ -72,7 +72,7 @@ function buildAbsorbablePositions(
if (other.id == relayCabinet.id) {
return;
}
const ps = other.datas.transform.position;
const ps = other.position;
const xs = new AbsorbableLine({ x: 0, y: ps.y }, { x: width, y: ps.y });
const ys = new AbsorbableLine({ x: ps.x, y: 0 }, { x: ps.x, y: height });
aps.push(xs, ys);