diff --git a/Client/origin-client/scenes/game/game_screen.gd b/Client/origin-client/scenes/game/game_screen.gd index 00fc98a..7bc73b0 100644 --- a/Client/origin-client/scenes/game/game_screen.gd +++ b/Client/origin-client/scenes/game/game_screen.gd @@ -458,9 +458,14 @@ func _add_tile(x: int, y: int, affinity: String) -> void: body.add_child(shape) # Placeholder: affinity-coloured flat box, swapped out if a 3D model loads. + # Visual height varies per tile (0.8–1.0) for organic terrain feel. + # The mesh is shifted downward so the TOP surface always stays at Y=0.5 in + # world space — collision shape, unit positions, and highlights are unaffected. + var vis_h : float = randf_range(0.8, 1.0) var mi := MeshInstance3D.new() var bm := BoxMesh.new() - bm.size = Vector3(0.98, 0.5, 0.98) + bm.size = Vector3(0.98, vis_h, 0.98) + mi.position = Vector3(0, (0.5 - vis_h) * 0.5, 0) # shift down to keep top at body-local +0.25 mi.mesh = bm var mat := StandardMaterial3D.new() mat.albedo_color = AFFINITY_COLORS.get(affinity, Color(0.2, 0.2, 0.2))