mirror of https://github.com/godotengine/godot
Fixed CPUParticles3D using angle incorrectly when ROTATE_Y is set.
This commit is contained in:
parent
68ad520da4
commit
a002b212df
|
|
@ -1124,7 +1124,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
|
||||||
//turn particle by rotation in Y
|
//turn particle by rotation in Y
|
||||||
if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
|
if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
|
||||||
Basis rot_y(Vector3(0, 1, 0), p.custom[0]);
|
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 New Issue