From bc0ea63460100f61e6c6b73abe20c1f4ffae5db4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 7 Jan 2017 21:04:01 -0800 Subject: sparkler: stop scaling gravity vector every particle vestigial deficiency from variable gravity experiment also reduced gravity, the results seem more aesthetically pleasing. --- modules/sparkler/particles.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/sparkler') 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 -- cgit v1.2.3