Topic was automatically imported from the old Question2Answer platform.
Asked By
MIna
I need a rigidbody2d with a sphere collision shape to magnetically attach to instances of itself when they get into a certain proximity of each other. Any tips or links to tutorials?
Maybe you could use an Area and when a object enters the Area then use the move_toward() function. Im still pretty new to godot so idk if this would work
Some fun stuff I read about today.
One of the many benefits to Area2Ds is their ability to alter physics. One of these alterations is known as point gravity. I can see you using an Area2D node as a child of your RigidBody2D node to achieve the desired effect. More details about this process can be found towards the bottom of this page.
I hope I could be of some assistance to you.
Maxwell