showing what is placeable or not

This commit is contained in:
wass08
2026-01-18 11:09:05 +09:00
parent 35a479df15
commit 159b61d22a
3 changed files with 9 additions and 8 deletions
@@ -74,12 +74,11 @@ export const ItemTool: React.FC = () => {
[0, 0, 0],
[draftItem.current.id],
);
console.log(
"placeable",
placeable,
[gridPosition.current.x, 0, gridPosition.current.z],
selectedItem.dimensions,
);
if (placeable.valid) {
cursorRef.current.material.color.set("green");
} else {
cursorRef.current.material.color.set("red");
}
}
}
};