diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2017-04-26 16:02:30 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2017-04-26 16:02:30 -0700 |
commit | 9f499b0590b1a7d56c36ec5d093e82795c3aba19 (patch) | |
tree | 165f984ea248580a767a245a1fe5bde528375a59 /src/modules/sparkler/particle.h | |
parent | 9acecdfdd43c0eca5e7d0ec22aaf3ac51b94a7c2 (diff) |
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.
Diffstat (limited to 'src/modules/sparkler/particle.h')
-rw-r--r-- | src/modules/sparkler/particle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/sparkler/particle.h b/src/modules/sparkler/particle.h index 95c117e..c63024d 100644 --- a/src/modules/sparkler/particle.h +++ b/src/modules/sparkler/particle.h @@ -12,6 +12,7 @@ typedef struct particle_props_t { float mass; /* mass of particle */ float drag; /* drag of particle */ int of_use:1; /* are these properties of use/meaningful? */ + int virtual:1; /* is this a virtual particle? (not to be moved or otherwise acted upon) */ } particle_props_t; typedef enum particle_status_t { |