diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-02-16 12:09:53 +0100 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-05-05 22:49:06 -0400 |
commit | 4a28f7e44f99e5c8cab13b4eca4819e483469b07 (patch) | |
tree | 8abcaccc3fef1311b2f47720c5ba6cc8962ea24c /scene/2d | |
parent | 758bccf364729474f8ffbcf15a0bb6e9bad02d9c (diff) | |
download | redot-engine-4a28f7e44f99e5c8cab13b4eca4819e483469b07.tar.gz |
Increase the default 2D gravity to 980.0
This makes 2D RigidBody physics feel less floaty out of the box.
This closes https://github.com/godotengine/godot-proposals/issues/98.
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/area_2d.cpp | 2 | ||||
-rw-r--r-- | scene/2d/cpu_particles_2d.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/area_2d.cpp b/scene/2d/area_2d.cpp index 9dfdd7bd0e..2abd0eae70 100644 --- a/scene/2d/area_2d.cpp +++ b/scene/2d/area_2d.cpp @@ -568,7 +568,7 @@ void Area2D::_bind_methods() { Area2D::Area2D() : CollisionObject2D(PhysicsServer2D::get_singleton()->area_create(), true) { - set_gravity(98); + set_gravity(980); set_gravity_vector(Vector2(0, 1)); set_monitoring(true); set_monitorable(true); diff --git a/scene/2d/cpu_particles_2d.h b/scene/2d/cpu_particles_2d.h index ba34a0f45d..92b8be77cf 100644 --- a/scene/2d/cpu_particles_2d.h +++ b/scene/2d/cpu_particles_2d.h @@ -169,7 +169,7 @@ private: Vector<Color> emission_colors; int emission_point_count = 0; - Vector2 gravity = Vector2(0, 98); + Vector2 gravity = Vector2(0, 980); void _update_internal(); void _particles_process(float p_delta); |