Restrict Player Height in Physics Engine

i want to decrease the player’s gravity in the Object Gravity example. however, if the object is above a certain point relative to the center of the planet, i don’t want it to fly off into the voids of space, so i want to set a height limitation. how can I achieve this?

You mean something to prevent it to jump higher than a certain point? make a “ceiling”, an invisible sprite above him that has the physics 2.0 behavior with static instead of dynamic.

1 Like

Thanks? How should I achieve this?