Myjestic Posted April 8, 2016 Share Posted April 8, 2016 Hi, I did not find anything about that topic. How can I change the emit rate of a particle system after it started? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 9, 2016 Share Posted April 9, 2016 Hey! system. emitRate = xxx should make it Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 9, 2016 Share Posted April 9, 2016 Please provide a repro case on the playground if this does not work Quote Link to comment Share on other sites More sharing options...
Myjestic Posted April 10, 2016 Author Share Posted April 10, 2016 Hey Deltakosh, it is a bit complicated to show my project, because there are to many dependencies. I am calling scene.registerBeforeRender(function () { particleSystem.emitRate += 1; console.log(particleSystem.emitRate); }); inside my CreateScene function. If I try it in playground, everything works fine. The emit rate of my particle system is increasing and I can see this in my rendered scene. http://playground.babylonjs.com/#UTHSK#0 But if I do the same in my project, I can see the emitRate rising in console. But I see no effect in my rendered scene. I know this is kind like clairvoyance for you. But do you have an assumption for this behavior? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 11, 2016 Share Posted April 11, 2016 Let me check my crystal ball I cannot help you more without your code but here are some random ideas: - Are you sure you are not setting the emitRate somewhere else? - Do you reload your particles from a file? Quote Link to comment Share on other sites More sharing options...
Myjestic Posted April 17, 2016 Author Share Posted April 17, 2016 Argh. I was searching for days for this problem. Now I found it. My particle emitter was a clone of a mesh and that was the reason why nothing happend if I changed the emit rate. Know the emitter is a single mesh and everything works like a charm. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.