summaryrefslogtreecommitdiff
path: root/modules/sparkler/particles.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sparkler/particles.c')
-rw-r--r--modules/sparkler/particles.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/sparkler/particles.c b/modules/sparkler/particles.c
index 69f55dd..0eb260e 100644
--- a/modules/sparkler/particles.c
+++ b/modules/sparkler/particles.c
@@ -300,11 +300,9 @@ static inline void _particles_age(particles_t *particles, list_head_t *list)
#if 1
if (p->props.mass > 0.0f) {
/* gravity, TODO: mass isn't applied. */
- static v3f_t gravity = v3f_init(0.0f, -1.0f, 0.0f);
- v3f_t g;
+ static v3f_t gravity = v3f_init(0.0f, -0.05f, 0.0f);
- g = v3f_mult_scalar(&gravity, 0.08f);
- p->props.direction = v3f_add(&p->props.direction, &g);
+ p->props.direction = v3f_add(&p->props.direction, &gravity);
p->props.direction = v3f_normalize(&p->props.direction);
}
#endif
© All Rights Reserved