removing bump from week 2 start files

This commit is contained in:
OddlyTimbot 2024-07-26 13:40:53 -04:00
parent 8695701fdf
commit 15548d7ff3

View File

@ -26,9 +26,3 @@ func _physics_process(delta):
velocity.x = move_toward(velocity.x, 0, SPEED) velocity.x = move_toward(velocity.x, 0, SPEED)
move_and_slide() 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)