Compare commits

..
2 Commits
Author SHA1 Message Date
Hermes 365264e819 fix: spawn capsule floor-aligned in test level 2026-06-03 17:28:46 -04:00
Hermes d86eb53065 fix: place floor under player and clean debug spam 2026-06-03 17:24:18 -04:00
+4 -2
View File
@@ -71,7 +71,7 @@ func _build_input_map() -> void:
func _build_floor() -> void: func _build_floor() -> void:
_box_static(Vector3(0, -1.1, 0), Vector3(30, 0.4, 30), Color(0.35, 0.25, 0.15)) _box_static(Vector3(0, 0.0, 0), Vector3(30, 1.0, 30), Color(0.35, 0.25, 0.15))
func _build_walls() -> void: func _build_walls() -> void:
@@ -94,7 +94,7 @@ func _build_lighting() -> void:
func _build_player() -> void: func _build_player() -> void:
var player := CharacterBody3D.new() var player := CharacterBody3D.new()
player.name = "Player" player.name = "Player"
player.position = Vector3(0, 1.5, 8) player.position = Vector3(0, 1.4, 8)
add_child(player) add_child(player)
var shape := CollisionShape3D.new() var shape := CollisionShape3D.new()
shape.shape = CapsuleShape3D.new() shape.shape = CapsuleShape3D.new()
@@ -142,6 +142,8 @@ func _build_player() -> void:
sm._ready() sm._ready()
if player.has_method("_ensure_process"): if player.has_method("_ensure_process"):
player._ensure_process() player._ensure_process()
if sm.has_method("set_physics_process"):
sm.set_physics_process(true)
func _build_ui() -> void: func _build_ui() -> void: