diff --git a/scripts/player.gd b/scripts/player.gd index a0bf4b9..7b0e60e 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -79,7 +79,7 @@ func _physics_process(delta: float) -> void: var c = get_slide_collision(i) #is this a bonkable thing? if c.get_collider() is RigidBody2D: - c.get_collider().apply_central_impulse(-c.get_normal() * 100) + forcePushSignal.emit(c.get_collider(), -c.get_normal() * 100) if rightRay.is_colliding(): #get the thing causing the collision