diff --git a/week2/original_files/scripts/CharacterBody2D.gd b/week2/original_files/scripts/CharacterBody2D.gd index a747263..3186a3a 100644 --- a/week2/original_files/scripts/CharacterBody2D.gd +++ b/week2/original_files/scripts/CharacterBody2D.gd @@ -26,9 +26,3 @@ func _physics_process(delta): velocity.x = move_toward(velocity.x, 0, SPEED) move_and_slide() - # This represents the player's inertia - # after calling move_and_slide() - for i in get_slide_collision_count(): - var c = get_slide_collision(i) - if c.get_collider() is RigidBody2D: - c.get_collider().apply_central_impulse(-c.get_normal() * PUSH_FORCE)