Panda3D
|
Contains and manages a particle system. More...
Public Member Functions | |
ParticleSystem (ParticleSystem const copy) | |
Copy Constructor. | |
ParticleSystem (int pool_size) | |
Default Constructor. | |
ParticleSystem () | |
Default Constructor. | |
addAngularForce (AngularForce f) | |
Adds an angular force to the force list. | |
addLinearForce (LinearForce f) | |
Adds a linear force to the force list. | |
addPhysicsObject (PhysicsObject po) | |
Adds an object to the physics object vector. | |
addSpawnTemplate (ParticleSystem ps) | |
clearAngularForces () | |
Erases the angular force list. | |
clearFloorZ () | |
clearLinearForces () | |
Erases the linear force list. | |
clearPhysicsObjects () | |
Erases the object list. | |
clearSpawnTemplates () | |
clearToInitial () | |
Resets the system to its start state by resizing to 0, then resizing back to current size. | |
bool | getActiveSystemFlag () |
AngularForce | getAngularForce (int index) |
list | getAngularForces () |
float | getBirthRate () |
BaseParticleEmitter | getEmitter () |
BaseParticleFactory | getFactory () |
float | getFloorZ () |
bool | getIWasSpawnedFlag () |
LinearForce | getLinearForce (int index) |
list | getLinearForces () |
int | getLitterSize () |
int | getLitterSpread () |
int | getLivingParticles () |
bool | getLocalVelocityFlag () |
int | getNumAngularForces () |
int | getNumLinearForces () |
PhysicsObjectCollection const | getObjects () |
PhysicsObject | getPhysBody () |
PhysicalNode | getPhysicalNode () |
NodePath | getPhysicalNodePath () |
PhysicsManager | getPhysicsManager () |
int | getPoolSize () |
BaseParticleRenderer | getRenderer () |
NodePath | getRenderParent () |
float | getSoftBirthRate () |
bool | getSpawnOnDeathFlag () |
PandaNode | getSpawnRenderNode () |
NodePath | getSpawnRenderNodePath () |
float | getSystemAge () |
bool | getSystemGrowsOlderFlag () |
float | getSystemLifespan () |
float | getViscosity () |
Get the local viscosity. | |
induceLabor () | |
Forces the birth of a particle litter this frame by resetting _tics_since_birth. | |
output (ostream out) | |
Write a string representation of this instance to <out>. | |
output () | |
Write a string representation of this instance to <out>. | |
removeAngularForce (AngularForce f) | |
removes an angular force from the force list | |
removeLinearForce (LinearForce f) | |
removes a linear force from the force list | |
render () | |
Populates an attached GeomNode structure with the particle geometry for rendering. | |
setActiveSystemFlag (bool a) | |
setBirthRate (float new_br) | |
setEmitter (BaseParticleEmitter e) | |
setFactory (BaseParticleFactory f) | |
setFloorZ (float z) | |
setLitterSize (int new_ls) | |
setLitterSpread (int new_ls) | |
setLocalVelocityFlag (bool lv) | |
setPoolSize (int size) | |
setRenderer (BaseParticleRenderer r) | |
setRenderParent (PandaNode node) | |
setRenderParent (NodePath const node) | |
setSoftBirthRate (float new_br) | |
setSpawnOnDeathFlag (bool sod) | |
setSpawnRenderNode (PandaNode node) | |
setSpawnRenderNodePath (NodePath const node) | |
setSystemAge (float age) | |
setSystemGrowsOlderFlag (bool sgo) | |
setSystemLifespan (float sl) | |
setTemplateSystemFlag (bool tsf) | |
setViscosity (float viscosity) | |
Set the local viscosity. | |
softStart () | |
Causes system to use birth rate set by set_birth_rate() | |
softStart (float br) | |
Causes system to use birth rate set by set_birth_rate() | |
softStop () | |
Causes system to use birth rate set by set_soft_birth_rate() | |
softStop (float br) | |
Causes system to use birth rate set by set_soft_birth_rate() | |
update (float dt) | |
write (ostream out, int indent) | |
Write a string representation of this instance to <out>. | |
write (ostream out, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
write (ostream out) | |
Write a string representation of this instance to <out>. | |
write () | |
Write a string representation of this instance to <out>. | |
writeAngularForces () | |
Write a string representation of this instance to <out>. | |
writeAngularForces (ostream out, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
writeAngularForces (ostream out) | |
Write a string representation of this instance to <out>. | |
writeFreeParticleFifo (ostream out, int indent) | |
Write a string representation of this instance to <out>. | |
writeFreeParticleFifo (ostream out) | |
Write a string representation of this instance to <out>. | |
writeLinearForces () | |
Write a string representation of this instance to <out>. | |
writeLinearForces (ostream out, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
writeLinearForces (ostream out) | |
Write a string representation of this instance to <out>. | |
writePhysicsObjects (ostream out) | |
Write a string representation of this instance to <out>. | |
writePhysicsObjects (ostream out, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
writePhysicsObjects () | |
Write a string representation of this instance to <out>. | |
writeSpawnTemplates (ostream out) | |
Write a string representation of this instance to <out>. | |
writeSpawnTemplates (ostream out, int indent) | |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
Contains and manages a particle system.
ParticleSystem | ( | ParticleSystem const | copy | ) |
Copy Constructor.
ParticleSystem | ( | int | pool_size | ) |
Default Constructor.
ParticleSystem | ( | ) |
Default Constructor.
addAngularForce | ( | AngularForce | f | ) | [inherited] |
Adds an angular force to the force list.
addLinearForce | ( | LinearForce | f | ) | [inherited] |
Adds a linear force to the force list.
addPhysicsObject | ( | PhysicsObject | po | ) | [inherited] |
Adds an object to the physics object vector.
addSpawnTemplate | ( | ParticleSystem | ps | ) |
clearAngularForces | ( | ) | [inherited] |
Erases the angular force list.
clearFloorZ | ( | ) |
clearLinearForces | ( | ) | [inherited] |
Erases the linear force list.
clearPhysicsObjects | ( | ) | [inherited] |
Erases the object list.
clearSpawnTemplates | ( | ) |
clearToInitial | ( | ) |
Resets the system to its start state by resizing to 0, then resizing back to current size.
bool getActiveSystemFlag | ( | ) |
AngularForce getAngularForce | ( | int | index | ) | [inherited] |
list getAngularForces | ( | ) | [inherited] |
float getBirthRate | ( | ) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from Physical.
BaseParticleEmitter getEmitter | ( | ) |
BaseParticleFactory getFactory | ( | ) |
float getFloorZ | ( | ) |
bool getIWasSpawnedFlag | ( | ) |
LinearForce getLinearForce | ( | int | index | ) | [inherited] |
list getLinearForces | ( | ) | [inherited] |
int getLitterSize | ( | ) |
int getLitterSpread | ( | ) |
int getLivingParticles | ( | ) |
bool getLocalVelocityFlag | ( | ) |
int getNumAngularForces | ( | ) | [inherited] |
int getNumLinearForces | ( | ) | [inherited] |
PhysicsObjectCollection const getObjects | ( | ) | [inherited] |
PhysicsObject getPhysBody | ( | ) | [inherited] |
PhysicalNode getPhysicalNode | ( | ) | [inherited] |
NodePath getPhysicalNodePath | ( | ) | [inherited] |
PhysicsManager getPhysicsManager | ( | ) | [inherited] |
int getPoolSize | ( | ) |
BaseParticleRenderer getRenderer | ( | ) |
NodePath getRenderParent | ( | ) |
float getSoftBirthRate | ( | ) |
bool getSpawnOnDeathFlag | ( | ) |
PandaNode getSpawnRenderNode | ( | ) |
NodePath getSpawnRenderNodePath | ( | ) |
float getSystemAge | ( | ) |
bool getSystemGrowsOlderFlag | ( | ) |
float getSystemLifespan | ( | ) |
float getViscosity | ( | ) | [inherited] |
Get the local viscosity.
induceLabor | ( | ) |
Forces the birth of a particle litter this frame by resetting _tics_since_birth.
output | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
output | ( | ) | [inherited] |
Write a string representation of this instance to <out>.
removeAngularForce | ( | AngularForce | f | ) | [inherited] |
removes an angular force from the force list
removeLinearForce | ( | LinearForce | f | ) | [inherited] |
removes a linear force from the force list
render | ( | ) |
Populates an attached GeomNode structure with the particle geometry for rendering.
This is a wrapper for accessability.
setActiveSystemFlag | ( | bool | a | ) |
setBirthRate | ( | float | new_br | ) |
setEmitter | ( | BaseParticleEmitter | e | ) |
setFactory | ( | BaseParticleFactory | f | ) |
setFloorZ | ( | float | z | ) |
setLitterSize | ( | int | new_ls | ) |
setLitterSpread | ( | int | new_ls | ) |
setLocalVelocityFlag | ( | bool | lv | ) |
setPoolSize | ( | int | size | ) |
setRenderer | ( | BaseParticleRenderer | r | ) |
setRenderParent | ( | PandaNode | node | ) |
setRenderParent | ( | NodePath const | node | ) |
setSoftBirthRate | ( | float | new_br | ) |
setSpawnOnDeathFlag | ( | bool | sod | ) |
setSpawnRenderNode | ( | PandaNode | node | ) |
setSpawnRenderNodePath | ( | NodePath const | node | ) |
setSystemAge | ( | float | age | ) |
setSystemGrowsOlderFlag | ( | bool | sgo | ) |
setSystemLifespan | ( | float | sl | ) |
setTemplateSystemFlag | ( | bool | tsf | ) |
setViscosity | ( | float | viscosity | ) | [inherited] |
Set the local viscosity.
softStart | ( | float | br | ) |
Causes system to use birth rate set by set_birth_rate()
softStart | ( | ) |
Causes system to use birth rate set by set_birth_rate()
softStop | ( | float | br | ) |
Causes system to use birth rate set by set_soft_birth_rate()
softStop | ( | ) |
Causes system to use birth rate set by set_soft_birth_rate()
update | ( | float | dt | ) |
write | ( | ostream | out, |
int | indent | ||
) |
Write a string representation of this instance to <out>.
write | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.
write | ( | ) | [inherited] |
Write a string representation of this instance to <out>.
write | ( | ostream | out | ) |
Write a string representation of this instance to <out>.
Reimplemented from Physical.
writeAngularForces | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.
writeAngularForces | ( | ) | [inherited] |
Write a string representation of this instance to <out>.
writeAngularForces | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
writeFreeParticleFifo | ( | ostream | out, |
int | indent | ||
) |
Write a string representation of this instance to <out>.
writeFreeParticleFifo | ( | ostream | out | ) |
Write a string representation of this instance to <out>.
writeLinearForces | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.
writeLinearForces | ( | ) | [inherited] |
Write a string representation of this instance to <out>.
writeLinearForces | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
writePhysicsObjects | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.
writePhysicsObjects | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
writePhysicsObjects | ( | ) | [inherited] |
Write a string representation of this instance to <out>.
writeSpawnTemplates | ( | ostream | out, |
int | indent | ||
) |
Write a string representation of this instance to <out>.
writeSpawnTemplates | ( | ostream | out | ) |
Write a string representation of this instance to <out>.