Fix spawn floorplan move handle

This commit is contained in:
Aymeric Rabot
2026-06-10 14:11:50 -04:00
parent 3a1ba56246
commit 5fd9be05df
4 changed files with 48 additions and 0 deletions
+5
View File
@@ -113,6 +113,11 @@ export function buildSpawnFloorplan(node: SpawnNode, ctx: GeometryContext): Floo
]
if (isSelected) {
children.push({
kind: 'move-handle',
point: [px, pz],
})
const cornerLocalX = 0.34 + ROTATE_ARROW_CORNER_OFFSET
const cornerLocalZ = 0.34 + ROTATE_ARROW_CORNER_OFFSET
const [cornerX, cornerZ] = rotatePlanVector(cornerLocalX, cornerLocalZ, planRotation)