I'm having a bit problem while dealing with RigidBody and collision.
What I'm doing is instancing some nodes while clicking a button, a new node is instanced in a different position.
Those nodes need to be able to move by drag and drop on mouses, and initially, I did with Area2d nodes and it was working fine, however, I need it to handle collisions and I used the same principle for moving it.
The problem is that when I move using a rigid body, the movement appears to be limited to the rigid body area itself.
Trying to change the rigid body to a character also has the same effect, however, it resets to the initial position.
Note that in the background, there is a Are2d, however, to avoid issues, I also changed the layer/mask, however, no luck.
Here is the code I'm using to move them.
var MouseIn = false
if(MouseIn == true && Input.is_action_pressed("click")):
MouseIn = true
MouseIn = false
Do you know what i'm doing wrong? It's the movement script itself or there is any property i'm not aware that cause it?