Hello! I am trying to use a raycast to collide with the player, in order to simulate the enemy noticing the player. For some reason, the raycast works and collides with everything except for my player. How can I get my raycast to detect the player?
The player and enemy are both KinematicBody2D's and the raycast is set to detect all bodies except for Areas. Here is my code:
var groups = get_groups()
I know the raycast is working because I tested it by using print to print something if it was colliding, and it was, but it didn't detect the player