mirror of
https://github.com/godotengine/godot.git
synced 2024-12-18 09:03:16 +00:00
fix bug with cpu_particle_2d_align_y
This commit is contained in:
parent
fdd7ed36bf
commit
fbde851641
@ -840,7 +840,7 @@ void CPUParticles2D::_particles_process(float p_delta) {
|
|||||||
if (flags[FLAG_ALIGN_Y_TO_VELOCITY]) {
|
if (flags[FLAG_ALIGN_Y_TO_VELOCITY]) {
|
||||||
if (p.velocity.length() > 0.0) {
|
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();
|
p.transform.elements[0] = p.transform.elements[1].tangent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user