Mario Galaxy Style Gravity

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By djmick

Hello everyone! I was just wondering if anyone had any idea how to go about making Mario Galaxy style planet gravity in 2D where you run around and jump between planets of different shapes and sizes. Probably something similar to this:

:bust_in_silhouette: Reply From: Schala

I’m new to Godot myself, having experience in Unity mostly, but if each planet has a kinematic body 2D, what I would do is disable/enable the kinematic body 2D node based on exiting/entering a boundary trigger the player is closest to. At least, I’d imagine that’s how it would be done in Godot.

the area 2D point gravity might be able to achieve the planet gravity.

Millard | 2020-11-11 05:33