From 266d0d2cf6648509650bdd490c8e9c64be75b92e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 21 Jan 2013 18:37:59 +0000 Subject: 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. --- src/render/particlesystemscript.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/render/particlesystemscript.cc') 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) { -- cgit v1.2.3