Merge pull request #29958 from akien-mga/keep-calm-and-do-particles
Particles: Fix uninitialized angular velocity, fix inconsistency in linear velocity between CPU and GPU Particles
This commit is contained in:
commit
34224d5ce5
3 changed files with 5 additions and 3 deletions
|
@ -1391,10 +1391,10 @@ CPUParticles2D::CPUParticles2D() {
|
|||
|
||||
set_spread(45);
|
||||
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_ORBIT_VELOCITY, 0);
|
||||
set_param(PARAM_LINEAR_ACCEL, 0);
|
||||
set_param(PARAM_ANGULAR_VELOCITY, 0);
|
||||
set_param(PARAM_RADIAL_ACCEL, 0);
|
||||
set_param(PARAM_TANGENTIAL_ACCEL, 0);
|
||||
set_param(PARAM_DAMPING, 0);
|
||||
|
|
|
@ -1459,7 +1459,8 @@ CPUParticles::CPUParticles() {
|
|||
|
||||
set_spread(45);
|
||||
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_ORBIT_VELOCITY, 0);
|
||||
set_param(PARAM_LINEAR_ACCEL, 0);
|
||||
set_param(PARAM_RADIAL_ACCEL, 0);
|
||||
|
|
|
@ -1202,6 +1202,7 @@ ParticlesMaterial::ParticlesMaterial() :
|
|||
set_spread(45);
|
||||
set_flatness(0);
|
||||
set_param(PARAM_INITIAL_LINEAR_VELOCITY, 0);
|
||||
set_param(PARAM_ANGULAR_VELOCITY, 0);
|
||||
set_param(PARAM_ORBIT_VELOCITY, 0);
|
||||
set_param(PARAM_LINEAR_ACCEL, 0);
|
||||
set_param(PARAM_RADIAL_ACCEL, 0);
|
||||
|
|
Loading…
Reference in a new issue