Skip to content

Commit

Permalink
fix bug with cpu_particle_2d_align_y
Browse files Browse the repository at this point in the history
  • Loading branch information
clayjohn committed Jan 22, 2019
1 parent fdd7ed3 commit fbde851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/2d/cpu_particles_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fbde851

Please sign in to comment.