Area entered signal and area data not updated

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

Hi,

I will try to explain my problem with my poor English :slight_smile:

I’m making my first game with Godot. A pong like.
I have a problem with the area entered signal.

In my Player class I have a method which update a vector (player.current_vector) used for player movement.
https://github.com/damienmarchandfr/pong/blob/develop/Player.gd#L24
For example, when I push “up” player.current_vector = Vector2(0,speed)

In my Ball class I have a method call when the ball and another area collide.
https://github.com/damienmarchandfr/pong/blob/develop/Ball.gd#L57
In this method, area.current_vector ( which is the player movement ) is always equal to Vector2(0,0) even when my player moves.

I do no not understand.
Thx for your help.