From de38a0f5d91665293873dfb8f8013e7873a1cb31 Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Fri, 29 Sep 2023 15:18:36 -0400 Subject: [PATCH] added continuous collision detection and removed print statement --- objects/environment/zball/zball.gd | 1 - objects/environment/zball/zball.tscn | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/environment/zball/zball.gd b/objects/environment/zball/zball.gd index e49a053..7c9a173 100644 --- a/objects/environment/zball/zball.gd +++ b/objects/environment/zball/zball.gd @@ -15,7 +15,6 @@ func _on_Hurtbox_area_entered(area: Area2D) -> void: func _physics_process(delta: float) -> void: var speed: float = inverse_lerp(0.0, 250.0, linear_velocity.length()) - print(speed) glow.energy = lerp(0.0, max_glow, speed) diff --git a/objects/environment/zball/zball.tscn b/objects/environment/zball/zball.tscn index a48ce1a..c531390 100644 --- a/objects/environment/zball/zball.tscn +++ b/objects/environment/zball/zball.tscn @@ -13,6 +13,7 @@ radius = 4.0 [node name="ZBall" type="RigidBody2D"] mass = 5.0 physics_material_override = SubResource( 2 ) +continuous_cd = 2 script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."]