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.
This commit is contained in:
Rémi Verschelde 2019-06-29 21:27:36 +02:00
parent a78373ddc2
commit 26f99beac3
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@
<member name="fract_delta" type="bool" setter="set_fractional_delta" getter="get_fractional_delta" default="true"> <member name="fract_delta" type="bool" setter="set_fractional_delta" getter="get_fractional_delta" default="true">
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect.
</member> </member>
<member name="gravity" type="Vector2" setter="set_gravity" getter="get_gravity" default="Vector2( 0, 98.8 )"> <member name="gravity" type="Vector2" setter="set_gravity" getter="get_gravity" default="Vector2( 0, 98 )">
Gravity applied to every particle. Gravity applied to every particle.
</member> </member>
<member name="hue_variation" type="float" setter="set_param" getter="get_param" default="0.0"> <member name="hue_variation" type="float" setter="set_param" getter="get_param" default="0.0">

View file

@ -1410,7 +1410,7 @@ CPUParticles2D::CPUParticles2D() {
set_emission_sphere_radius(1); set_emission_sphere_radius(1);
set_emission_rect_extents(Vector2(1, 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++) { for (int i = 0; i < PARAM_MAX; i++) {
set_param_randomness(Parameter(i), 0); set_param_randomness(Parameter(i), 0);