Merge pull request #89595 from apples/89559-cpuparticles3d-angle-rotate_y-fix

Fix `CPUParticles3D` using angle incorrectly when `ROTATE_Y` is set.
This commit is contained in:
Rémi Verschelde 2024-05-06 15:14:53 +02:00
commit 16eb8dbdc0
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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;
}
}