Compare commits
2
Commits
e5e7a7284e
...
365264e819
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
365264e819 | ||
|
|
d86eb53065 |
@@ -71,7 +71,7 @@ func _build_input_map() -> 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:
|
||||
@@ -94,7 +94,7 @@ func _build_lighting() -> void:
|
||||
func _build_player() -> void:
|
||||
var player := CharacterBody3D.new()
|
||||
player.name = "Player"
|
||||
player.position = Vector3(0, 1.5, 8)
|
||||
player.position = Vector3(0, 1.4, 8)
|
||||
add_child(player)
|
||||
var shape := CollisionShape3D.new()
|
||||
shape.shape = CapsuleShape3D.new()
|
||||
@@ -142,6 +142,8 @@ func _build_player() -> void:
|
||||
sm._ready()
|
||||
if player.has_method("_ensure_process"):
|
||||
player._ensure_process()
|
||||
if sm.has_method("set_physics_process"):
|
||||
sm.set_physics_process(true)
|
||||
|
||||
|
||||
func _build_ui() -> void:
|
||||
|
||||
Reference in New Issue
Block a user