Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
afa3f68f
Commit
afa3f68f
authored
May 04, 2021
by
TheNumbat
Browse files
fix 0 particle/s
parent
59ff78b6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/scene/particles.cpp
View file @
afa3f68f
...
@@ -121,6 +121,7 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
...
@@ -121,6 +121,7 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
float
cos
=
std
::
cos
(
Radians
(
opt
.
angle
)
/
2.0
f
);
float
cos
=
std
::
cos
(
Radians
(
opt
.
angle
)
/
2.0
f
);
if
(
opt
.
pps
>
0.0
f
)
{
double
cooldown
=
1.0
/
opt
.
pps
;
double
cooldown
=
1.0
/
opt
.
pps
;
while
(
particle_cooldown
<=
0.0
f
)
{
while
(
particle_cooldown
<=
0.0
f
)
{
...
@@ -143,6 +144,8 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
...
@@ -143,6 +144,8 @@ void Scene_Particles::step(const PT::BVH<PT::Object>& scene, float dt) {
}
}
particle_cooldown
-=
dt
;
particle_cooldown
-=
dt
;
}
particles
=
std
::
move
(
next
);
particles
=
std
::
move
(
next
);
}
}
...
...
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