Gravity around objects (Box2D)

Hello. Is it possible to make it so that an actor has a gravitational pull around it, like in Angry Birds Space?

vicevicebingo

  • Posts: 80
Probably circle region helps too much

If Max Marin could send me code of an Angry Birds Space-like gravity well, that would be cool.

Max Marin

  • Posts: 138
wait for me 2-3 hours, maybe 5
I'm human


Luyren

  • *
  • Posts: 2816
Something like this.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Max Marin

  • Posts: 138
I did it is pretty good
I'm human