From 9f499b0590b1a7d56c36ec5d093e82795c3aba19 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 26 Apr 2017 16:02:30 -0700 Subject: sparkler: add virtual flag to particle_props_t The burst particle abused a zero mass to circumvent the effects of aging. Instead use an explicit virtual flag to suppress aging, change busrt_cb to ignore all virtual particles instead of only its center. Previously burst_cb would thrust other bursts like any other particle, and this was incorrect. Now burst centers are always stationary, even when they overlap other bursts. --- src/modules/sparkler/simple.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/sparkler/simple.c') diff --git a/src/modules/sparkler/simple.c b/src/modules/sparkler/simple.c index 5524282..7c7d415 100644 --- a/src/modules/sparkler/simple.c +++ b/src/modules/sparkler/simple.c @@ -46,6 +46,7 @@ static int simple_init(particles_t *particles, particle_t *p) p->props->drag = 0.03; p->props->mass = 0.3; + p->props->virtual = 0; p->props->of_use = 1; } /* else { we've been given properties, manipulate them or run with them? } */ -- cgit v1.2.1