We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d36f394 + 7f60546 commit 7be9852Copy full SHA for 7be9852
scene/2d/cpu_particles_2d.cpp
@@ -1097,10 +1097,11 @@ void CPUParticles2D::_particles_process(double p_delta) {
1097
1098
if (particle_flags[PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY]) {
1099
if (p.velocity.length() > 0.0) {
1100
- p.transform.columns[1] = p.velocity.normalized();
1101
- p.transform.columns[0] = p.transform.columns[1].orthogonal();
+ p.transform.columns[1] = p.velocity;
1102
}
1103
+ p.transform.columns[1] = p.transform.columns[1].normalized();
1104
+ p.transform.columns[0] = p.transform.columns[1].orthogonal();
1105
} else {
1106
p.transform.columns[0] = Vector2(Math::cos(p.rotation), -Math::sin(p.rotation));
1107
p.transform.columns[1] = Vector2(Math::sin(p.rotation), Math::cos(p.rotation));
0 commit comments