This commit is contained in:
team3
2026-09-16 17:55:38 +02:00
parent c9416ed3c6
commit f012dd7cd5
17 changed files with 878 additions and 160 deletions

View File

@@ -92,4 +92,15 @@ static func house(wall: Color, roof: Color, w: float, d: float, h: float, chimne
if chimney:
n.add_child(_mi(box(Vector3(w * 0.16, h * 0.7, w * 0.16)), roof.darkened(0.3),
Vector3(w * 0.25, h + h * 0.45, 0)))
# Kollision nur fuer die Aussenkamera, damit sie nicht durch Waende schaut
var body := StaticBody3D.new()
body.collision_layer = 2
body.collision_mask = 0
var shape := CollisionShape3D.new()
var bs := BoxShape3D.new()
bs.size = Vector3(w * 1.14, h * 1.6, d * 1.06)
shape.shape = bs
shape.position = Vector3(0, h * 0.8, 0)
body.add_child(shape)
n.add_child(body)
return n