Changeset 1563 for code/trunk/src/orxonox/objects/SpaceShipAI.cc
- Timestamp:
- Jun 7, 2008, 11:40:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShipAI.cc
r1562 r1563 102 102 newenemy->XMLPort(xmlelement, XMLPort::LoadObject); 103 103 104 ParticleSpawner* spawneffect = new ParticleSpawner("Orxonox/fairytwirl", 2.0, 0.0, newenemy->getOrth());104 ParticleSpawner* spawneffect = new ParticleSpawner("Orxonox/fairytwirl", LODParticle::normal, 2.0, 0.0, newenemy->getOrth()); 105 105 spawneffect->setPosition(newenemy->getPosition() - newenemy->getOrth() * 50); 106 106 spawneffect->create(); … … 182 182 void SpaceShipAI::kill() 183 183 { 184 ParticleSpawner* explosion = new ParticleSpawner("Orxonox/BigExplosion1part1", 3.0); 185 explosion->setPosition(this->getPosition()); 186 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true); 187 explosion->setScale(4); 188 explosion->create(); 189 190 explosion = new ParticleSpawner("Orxonox/BigExplosion1part2", 3.0); 184 ParticleSpawner* explosion = new ParticleSpawner("Orxonox/BigExplosion1part1", LODParticle::low, 3.0); 185 explosion->setPosition(this->getPosition()); 186 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true); 187 explosion->setScale(4); 188 explosion->create(); 189 190 explosion = new ParticleSpawner("Orxonox/BigExplosion1part2", LODParticle::normal, 3.0); 191 explosion->setPosition(this->getPosition()); 192 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true); 193 explosion->setScale(4); 194 explosion->create(); 195 explosion = new ParticleSpawner("Orxonox/BigExplosion1part2", LODParticle::high, 3.0); 191 196 explosion->setPosition(this->getPosition()); 192 197 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true); … … 196 201 Vector3 ringdirection = Vector3(rnd(), rnd(), rnd()); 197 202 ringdirection.normalise(); 198 explosion = new ParticleSpawner("Orxonox/BigExplosion1part3", 3.0, 0.5, ringdirection); 203 explosion = new ParticleSpawner("Orxonox/BigExplosion1part3", LODParticle::normal, 3.0, 0.5, ringdirection); 204 explosion->setPosition(this->getPosition()); 205 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true); 206 explosion->setScale(4); 207 explosion->create(); 208 explosion = new ParticleSpawner("Orxonox/BigExplosion1part3", LODParticle::high, 3.0, 0.5, ringdirection); 199 209 explosion->setPosition(this->getPosition()); 200 210 explosion->getParticleInterface()->setKeepParticlesInLocalSpace(true);
Note: See TracChangeset
for help on using the changeset viewer.