1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #25207 from clayjohn/cpu_particle_2d_aligny_bug

Fix bug with CpuParticles2D AlignY
This commit is contained in:
Rémi Verschelde
2019-01-22 12:19:00 +01:00
committed by GitHub

View File

@@ -840,7 +840,7 @@ void CPUParticles2D::_particles_process(float p_delta) {
if (flags[FLAG_ALIGN_Y_TO_VELOCITY]) {
if (p.velocity.length() > 0.0) {
p.transform.elements[0] = p.velocity.normalized();
p.transform.elements[1] = p.velocity.normalized();
p.transform.elements[0] = p.transform.elements[1].tangent();
}