Panda3D Manual: Using the Particle Panel
<<prev | top | next>>
The particle panel must be used from the python command prompt. Open a command prompt and enter the folder you wish to run this in.
ppython import direct.directbase.DirectStart from direct.tkpanels import ParticlePanel pp = ParticlePanel.ParticlePanel() run()
Once the desired effect is achieved, save the file out. This, after some alterations, may be inserted into your current project code. First, copy and paste the code into your existing project code. Above the first line, add this line:
f = ParticleEffect.ParticleEffect()
After that, replace any “self” variable with the variable “f.” Finally, add these lines to the end of your particle effect code:
t = Sequence(Func(f.start, render, render),) t.start()
Also, to use any particle effects, they must be enabled through a base command.
base.enableParticles()
<<prev | top | next>>