From 26f99beac38808d0221031a41ab31325fec41be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 29 Jun 2019 21:27:36 +0200 Subject: CPUParticles2D: Fix gravity to be the same as in Particles2D and Area2D This was likely a typo, 10 times the standard gravity is 98.0665 (ca. 98), not 98.8. --- doc/classes/CPUParticles2D.xml | 2 +- scene/2d/cpu_particles_2d.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 5d159c169b..5ec460abb7 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -118,7 +118,7 @@ If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. - + Gravity applied to every particle. diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp index faa0a08d10..75315bfc6e 100644 --- a/scene/2d/cpu_particles_2d.cpp +++ b/scene/2d/cpu_particles_2d.cpp @@ -1410,7 +1410,7 @@ CPUParticles2D::CPUParticles2D() { set_emission_sphere_radius(1); set_emission_rect_extents(Vector2(1, 1)); - set_gravity(Vector2(0, 98.8)); + set_gravity(Vector2(0, 98)); for (int i = 0; i < PARAM_MAX; i++) { set_param_randomness(Parameter(i), 0); -- cgit v1.2.3