betere collision shapes, wat cleanup

This commit is contained in:
2023-02-02 16:59:05 +01:00
parent 7c5e3b9958
commit 8e6b0784e5
9 changed files with 46 additions and 32 deletions
+1 -2
View File
@@ -4,7 +4,7 @@ var combination
func _ready():
combination = randi() % 10000
$".."/CombiCode.mesh.text = str(combination)
$".."/CombiCode.mesh.text = "%04d" % combination #met leading 0'en
func get_number():
return 1000 * $Body/"1"/Cylinder/StaticBody3D.number + \
@@ -12,7 +12,6 @@ func get_number():
10 * $Body/"3"/Cylinder/StaticBody3D.number + \
$Body/"4"/Cylinder/StaticBody3D.number
func _on_static_body_3d_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Body/Knop/Audio.playing = true