From 15548d7ff3b474d1f11c2298dd70551342750bb5 Mon Sep 17 00:00:00 2001 From: OddlyTimbot Date: Fri, 26 Jul 2024 13:40:53 -0400 Subject: [PATCH] removing bump from week 2 start files --- week2/original_files/scripts/CharacterBody2D.gd | 6 ------ 1 file changed, 6 deletions(-) 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)