Skip to content

Commit

Permalink
Merge pull request #89595 from apples/89559-cpuparticles3d-angle-rota…
Browse files Browse the repository at this point in the history
…te_y-fix

Fix `CPUParticles3D` using angle incorrectly when `ROTATE_Y` is set.
  • Loading branch information
akien-mga committed May 6, 2024
2 parents 1069d7b + a002b21 commit 16eb8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/cpu_particles_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
//turn particle by rotation in Y
if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
Basis rot_y(Vector3(0, 1, 0), p.custom[0]);
p.transform.basis = p.transform.basis * rot_y;
p.transform.basis = rot_y;
}
}

Expand Down

0 comments on commit 16eb8db

Please sign in to comment.