Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-01-21 18:37:59 +0000
committerStijn Buys <ingar@osirion.org>2013-01-21 18:37:59 +0000
commit266d0d2cf6648509650bdd490c8e9c64be75b92e (patch)
treedf5fdb640ed09edcf044efdc8784b18a5881a513 /src/render/particlesystemscript.cc
parentd4f9da2f3c19511b028da2569d7b6a8d1371e135 (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.cc8
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) {