Browse Source

CPUParticles: Set linear velocity to 0, like GPU Particles

Rémi Verschelde 6 years ago
parent
commit
b3fe249e94
2 changed files with 2 additions and 2 deletions
  1. 1 1
      scene/2d/cpu_particles_2d.cpp
  2. 1 1
      scene/3d/cpu_particles.cpp

+ 1 - 1
scene/2d/cpu_particles_2d.cpp

@@ -1391,7 +1391,7 @@ CPUParticles2D::CPUParticles2D() {
 
 
 	set_spread(45);
 	set_spread(45);
 	set_flatness(0);
 	set_flatness(0);
-	set_param(PARAM_INITIAL_LINEAR_VELOCITY, 1);
+	set_param(PARAM_INITIAL_LINEAR_VELOCITY, 0);
 	set_param(PARAM_ANGULAR_VELOCITY, 0);
 	set_param(PARAM_ANGULAR_VELOCITY, 0);
 	set_param(PARAM_ORBIT_VELOCITY, 0);
 	set_param(PARAM_ORBIT_VELOCITY, 0);
 	set_param(PARAM_LINEAR_ACCEL, 0);
 	set_param(PARAM_LINEAR_ACCEL, 0);

+ 1 - 1
scene/3d/cpu_particles.cpp

@@ -1459,7 +1459,7 @@ CPUParticles::CPUParticles() {
 
 
 	set_spread(45);
 	set_spread(45);
 	set_flatness(0);
 	set_flatness(0);
-	set_param(PARAM_INITIAL_LINEAR_VELOCITY, 1);
+	set_param(PARAM_INITIAL_LINEAR_VELOCITY, 0);
 	set_param(PARAM_ANGULAR_VELOCITY, 0);
 	set_param(PARAM_ANGULAR_VELOCITY, 0);
 	set_param(PARAM_ORBIT_VELOCITY, 0);
 	set_param(PARAM_ORBIT_VELOCITY, 0);
 	set_param(PARAM_LINEAR_ACCEL, 0);
 	set_param(PARAM_LINEAR_ACCEL, 0);