Feat/8 adding a=map=basic=dust2 #12

Merged
Dotts merged 4 commits from feat/8-adding-a=map=basic=dust2 into main 2026-06-06 09:44:38 -07:00
Showing only changes of commit 050912ca61 - Show all commits
+3 -2
View File
@@ -62,8 +62,9 @@ func _build_dust2_layout() -> void:
var carve_open = func(pos: Vector3, size: Vector3):
var hole = CSGBox3D.new()
hole.operation = CSGShape3D.OPERATION_SUBTRACTION
hole.size = Vector3(size.x, 25, size.z)
hole.position = Vector3(pos.x, 12.5, pos.z)
var height = 25.0 - pos.y
hole.size = Vector3(size.x, height, size.z)
hole.position = Vector3(pos.x, pos.y + (height / 2.0), pos.z)
root_csg.add_child(hole)
return hole