Overlapping Area2D using combine gravity is not working as expected

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

Hello!

I’m working in a space gravity game.
I’m using Area2D to create point gravity to different planets/stars. I’m having an issue in overlapping areas. I though that using Space Override to Combine was the right idea but I’m only having working the gravity in one area with the lowest priority on the overlapping zones using replace. Do you know what am I doing wrong?
I’m using the total_forces to determine the sum of all the forces influencing my object (RigidBody2D).

Thank you for your help,

LionH

:bust_in_silhouette: Reply From: LionH

Ok, my bad. I was having an area2d from another scene added dynamically to the main scene which was set to replace.
It is very important to get track of all the area2d in the scene and put them to combine and the default gravity set to 0.