diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-21 18:37:59 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-21 18:37:59 +0000 |
commit | 266d0d2cf6648509650bdd490c8e9c64be75b92e (patch) | |
tree | df5fdb640ed09edcf044efdc8784b18a5881a513 /src/render/particlesystemscript.cc | |
parent | d4f9da2f3c19511b028da2569d7b6a8d1371e135 (diff) |
Added attached property to draw particle systems in entity space instead of world space,
corrected several bugs in the initial particle system implementation,
added impulse key to have particle systems react on impulse drive.
Diffstat (limited to 'src/render/particlesystemscript.cc')
-rw-r--r-- | src/render/particlesystemscript.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/particlesystemscript.cc b/src/render/particlesystemscript.cc index 98c0a2d..866fce1 100644 --- a/src/render/particlesystemscript.cc +++ b/src/render/particlesystemscript.cc @@ -199,6 +199,10 @@ ParticleSystemScript *ParticleSystemScript::load(const std::string &label) ejector->set_thrust(b); continue; + } else if (inifile.got_key_bool("impulse", b)) { + ejector->set_impulse(b); + continue; + } else if (inifile.got_key_bool("entity", b)) { ejector->set_entity(b); continue; @@ -214,6 +218,10 @@ ParticleSystemScript *ParticleSystemScript::load(const std::string &label) } continue; + } else if (inifile.got_key_bool("attached", b)) { + ejector->set_attached(b); + continue; + } else if (inifile.got_key_float("angle", yaw)) { if (yaw == model::ANGLEUP) { |