How would you create a gravity well? Such that as an object flies past it, if it’s within distance A, it starts pulling the object in, the closer the object the stronger the pull.
Thinking maybe:
Create vector from moving object to Gravity Well
Calc Distance from Object to Gravity Well
If Distance>A apply force on 2dRigidBody in direction of Vector found from Step #1
There’s gotta be a script for this already, I hate wasting time reinventing the wheel…