#Area3D not detecting body entered

8 messages · Page 1 of 1 (latest)

finite nexus
#

So I have an Area3D node attached to an enemy sprite. The goal is to "wake up" the enemy once the player gets close enough. But it's just not detecting the player at all.
This is all I have for code
func _on_chase_player_body_entered(body):
if body.is_in_group("player"):
print("entered")
Both the enemy and player a CharacterBody3d nodes, all the collision layers and masks are set to default, everything is as it should be. I just can't figure out why it's not working. I recreated the same setup in a separate project, and it worked just fine. but it wont in the actual project I'm working on.

weary obsidian
finite nexus
#

Collision Shapes are all good, green arrow is present.

#

Printing above the if statement did nothing

weary obsidian
#

The only thing I can think of then are the collision masks, but as you said they are all default thus should work

#

And obviously you didn't turn off the Monitoring property of the area

finite nexus
#

No, monitoring is turned on like it should be.