feat: better handle node position updates

This commit is contained in:
2025-12-05 14:19:11 +01:00
parent 702c3ee6cf
commit 73be4fdd73
3 changed files with 20 additions and 22 deletions

View File

@@ -42,8 +42,8 @@
</script>
<T.Mesh
position.x={node.position[0] + 10}
position.z={node.position[1] + height / 2}
position.x={(node.state.x ?? node.position[0]) + 10}
position.z={(node.state.y ?? node.position[1]) + height / 2}
position.y={0.8}
rotation.x={-Math.PI / 2}
bind:ref={meshRef}