![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | YmmitZtrol |
I have an area2D which sends a signal when another object on the scene enters it. How do I get the position of the entered object?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | YmmitZtrol |
I have an area2D which sends a signal when another object on the scene enters it. How do I get the position of the entered object?
![]() |
Reply From: | DDoop |
The body_entered
signal should automatically pass the entering object to the signal recipient as a local variable body
; ie you should be able to use body.position
inside the _on_area_body_enter
function block wherever the signal is received.