Removed a print statement used for debugging, added type hint to a variable
This commit is contained in:
parent
46f5b788a1
commit
e147517ad2
2 changed files with 3 additions and 4 deletions
|
@ -55,7 +55,7 @@ func create_raycasts():
|
|||
|
||||
func determine_reverb_params() -> Array[float]:
|
||||
# returns [room_size, wetness]
|
||||
var n_coll = 0
|
||||
var n_coll: int = 0
|
||||
var collision_points: Array[Vector2] = []
|
||||
for r in raycasts:
|
||||
if r.is_colliding():
|
||||
|
@ -117,5 +117,4 @@ func _ready() -> void:
|
|||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
var reverb_params = determine_reverb_params()
|
||||
print(reverb_params)
|
||||
update_reverb(reverb_params[0], reverb_params[1])
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[ext_resource type="Script" path="res://core/polygon/polygon.gd" id="1_ga37f"]
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_81uph"]
|
||||
[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_cjgtr"]
|
||||
|
||||
[node name="Polygon" type="CollisionPolygon2D"]
|
||||
script = ExtResource("1_ga37f")
|
||||
|
@ -11,4 +11,4 @@ script = ExtResource("1_ga37f")
|
|||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
editor_description = "For particle collisions"
|
||||
occluder = SubResource("OccluderPolygon2D_81uph")
|
||||
occluder = SubResource("OccluderPolygon2D_cjgtr")
|
||||
|
|
Reference in a new issue