Body entered signal not detecting anything (2d)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By scrub2219

hello, i am having trouble with a current project. Currently, I have a kinematic body that has basic movement. I have an area 2d under it. i have another still kinematic body in the scene aswell. what i want is when the area 2d surrounding the character collides with the still character, it sends a print. I disabled the collision shape for the area 2d because it would break the project. is that the problem? all my masks seem to be right.
this is the code but i don’t think its the problem
func _on_Visiblity_body_entered(body):
print(target)
if target:
return
body = target

func _on_Visiblity_body_exited(body):
if body == target:
target = null

:bust_in_silhouette: Reply From: magicalogic

If you disable the collision shape, no collision tests will be done so no signals indicating collisions will emitted. Disabling the Area2D’s collision shape is thus the problem.