mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
27 lines
604 B
Python
27 lines
604 B
Python
from direct.directbase.TestStart import *
|
|
|
|
from pandac.LinearVectorForce import LinearVectorForce
|
|
from pandac.Vec3 import Vec3
|
|
import ParticleEffect
|
|
from direct.tkpanels import ParticlePanel
|
|
import ForceGroup
|
|
|
|
# Showbase
|
|
base.enableParticles()
|
|
|
|
# ForceGroup
|
|
fg = ForceGroup.ForceGroup()
|
|
if 0:
|
|
gravity = LinearVectorForce(Vec3(0.0, 0.0, -10.0))
|
|
fg.addForce(gravity)
|
|
|
|
# Particle effect
|
|
pe = ParticleEffect.ParticleEffect('particle-fx')
|
|
pe.reparentTo(render)
|
|
#pe.setPos(0.0, 5.0, 4.0)
|
|
pe.addForceGroup(fg)
|
|
|
|
# Particle Panel
|
|
#*#pp = ParticlePanel.ParticlePanel(pe)
|
|
pp = ParticlePanel.ParticlePanel()
|