Fixed CPUParticles3D using angle incorrectly when ROTATE_Y is set.

This commit is contained in:
Apples 2024-03-17 01:07:10 -05:00
parent 68ad520da4
commit a002b212df
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,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;
}
}