mirror of
https://github.com/godotengine/godot
synced 2024-09-15 22:38:28 +00:00
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:
commit
16eb8dbdc0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue