I am trying to develop something in Godot and I was hoping it would be possible to create some sort of gravity field. I do not mean just the default falling down indefinitely. I mean like a kind of field that pulls objects inside. Like planet Earth, no matter which side you are on our spheroid, you are pulled down towards the center.
I want something along these lines too. I want to have a specific area that attracts other nodes to it.
Let me illustrate. The black square is the entire world (2D sketch, but I want it in 3D) and the border square is the force field, with A and B being RigidBody nodes.
Node A is outside of the force field, so it should get pulled inside. Node B is already inside, it should not have any force attracting it further down the center.
Is this easily possible or would this require too complicated a setup?