if head_bump_ray_cast.is_colliding():
var collider = head_bump_ray_cast.get_collider()
if collider.is_in_group("enemy"):
print("hit")
So for some odd reason this collider just doesn’t work even tho it’s turning red on collision and it clearly collides with the enemy, also trying to get the name using collider.name only returns @StaticBody2D for the enemy but returns the actual name for other nodes. Any ideas?
Then there’s the code for the RayCast which run’s in to players script but the problem is that it just does not want to return the group of the collider.