Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
7c8f55f8
Unverified
Commit
7c8f55f8
authored
Jan 22, 2019
by
Rémi Verschelde
Committed by
GitHub
Jan 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25207 from clayjohn/cpu_particle_2d_aligny_bug
Fix bug with CpuParticles2D AlignY
parents
8cc83acc
fbde8516
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cpu_particles_2d.cpp
scene/2d/cpu_particles_2d.cpp
+1
-1
No files found.
scene/2d/cpu_particles_2d.cpp
View file @
7c8f55f8
...
...
@@ -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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment