fix: better sites
This commit is contained in:
@@ -62,8 +62,9 @@ func _build_dust2_layout() -> void:
|
|||||||
var carve_open = func(pos: Vector3, size: Vector3):
|
var carve_open = func(pos: Vector3, size: Vector3):
|
||||||
var hole = CSGBox3D.new()
|
var hole = CSGBox3D.new()
|
||||||
hole.operation = CSGShape3D.OPERATION_SUBTRACTION
|
hole.operation = CSGShape3D.OPERATION_SUBTRACTION
|
||||||
hole.size = Vector3(size.x, 25, size.z)
|
var height = 25.0 - pos.y
|
||||||
hole.position = Vector3(pos.x, 12.5, pos.z)
|
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)
|
root_csg.add_child(hole)
|
||||||
return hole
|
return hole
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user