Search the Community
Showing results for tags 'emitter'.
-
Hi, I try to turn on and off a object particles which I loaded by Unigine::World::get()->loadNode, but nothing happens. The code below will be visited in debug. But particles are still spawning. Unigine::Vector<Unigine::NodePtr> hierarchy; myloadednode->getHierarchy(hierarchy); for (auto & node : hierarchy) { if (node->getType() == Unigine::Node::OBJECT_PARTICLES) { Unigine::ObjectParticlesPtr particle = Unigine::ObjectParticles::cast(node); particle->setNumberPerSpawn(0); particle->setEmitterEnabled(0); } } Did I forget something? Thanks, Sebastian
-
Particle emitter does not follow the bone that it is attached to. The effect plays normally but when the bone is moved it stays still. It worked fine before we applied engine update (unigine-sdk-2011-11-11). Previous unigine sdk version that we used was unigine-sdk-2011-01-17. Does anyone know what changes to particles system made between these versions could cause the problem? As an example I attached an archive with animated mesh and not working emitter. test.rar