Unverified Commit 7c8f55f8 by Rémi Verschelde Committed by GitHub

Merge pull request #25207 from clayjohn/cpu_particle_2d_aligny_bug

Fix bug with CpuParticles2D AlignY
parents 8cc83acc fbde8516
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment