godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.6k stars 2.97k forks source link

Physics introduction should grab gravity from project settings #2520

Open aaronfranke opened 5 years ago

aaronfranke commented 5 years ago

https://docs.godotengine.org/en/latest/tutorials/physics/physics_introduction.html#move-and-slide

Instead of var gravity = 2500, it should just get the gravity from ProjectSettings.get_setting("physics/2d/default_gravity"). This way, the gravity is the same for the KinematicBody and all Rigidbodies as well.

cbscribe commented 5 years ago

The problem with this is that the default 2D gravity (98) is way too low.

aaronfranke commented 5 years ago

Then it should be changed in the project settings, or maybe the default should be changed.

Calinou commented 4 years ago

The default 2D gravity will be increased by https://github.com/godotengine/godot/pull/36263 once it's merged.