Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ParticleEmitter Class Reference

Particle emitter. More...

Inheritance diagram for Dragengine.Scenery.ParticleEmitter:

Public Member Functions

Constructors
ParticleEmitter new ()
 Create particle emitter.
Controllers
int getControllerCount ()
 Nnumber of controllers.
void setControllerCount (int count)
 Set number of controllers.
ParticleEmitterController getControllerAt (int index)
 Get wrapper for controller.
ParticleEmitterController getControllerNamed (String name)
 Get wrapper for controller if present.
int indexOfControllerNamed (String name)
 Index of named controller or -1 if not found.
Burst
float getBurstLifetime ()
 Burst lifetime.
void setBurstLifetime (float lifetime)
 Set the burst liftime.
bool getEmitBurst ()
 Particles are emitted in bursts instead of continuous.
void setEmitBurst (bool emitBurst)
 Set if particles are emitted in bursts instead of continuous.
Types
int getTypeCount ()
 Number of types.
void setTypeCount (int count)
 Set number of types.
Skin getTypeSkin (int type)
 Type skin or null.
void setTypeSkin (int type, Skin skin)
 Set type skin or null.
Model getTypeModel (int type)
 Type model or null.
void setTypeModel (int type, Model model)
 Set type model or null.
Skin getTypeModelSkin (int type)
 Skin for the model used for casting or null.
void setTypeModelSkin (int type, Skin skin)
 Set skin for the model used for casting or null.
ParticleEmitterCastFrom getTypeCastFrom (int type)
 Determines from what part of the model to cast particles from.
void setTypeCastFrom (int type, ParticleEmitterCastFrom castFrom)
 Sets from what part of the model to cast particles from.
ParticleEmitterSimulation getTypeSimulationType (int type)
 Simulation type.
void setTypeSimulationType (int type, ParticleEmitterSimulation simulationType)
 Set simulation type.
bool getTypeIntervalAsDistance (int type)
 Interval is used as distance instead of time.
void setTypeIntervalAsDistance (int type, bool intervalAsDistance)
 Set if interval is used as distance instead of time.
ParticleEmitter getTypeTrailEmitter (int type)
 Particle emitter to create instances from for trails behind particles or null to use no trail.
void setTypeTrailEmitter (int type, ParticleEmitter emitter)
 Set particle emitter to create instances from for trails behind particles or null to use no trail.
int getTypeTrailController (int type, ParticleEmitterEmitController controller)
 Trail controller index or -1 if not set.
void setTypeTrailController (int type, ParticleEmitterEmitController controller, int targetController)
 Set trail controller index or -1 if not set.
float getTypePhysicsSize (int type)
 Physics size of the particle.
void setTypePhysicsSize (int type, float size)
 Set physics size of the particle.
ParticleCollisionResponse getTypeCollisionResponse (int type)
 Collision response.
void setTypeCollisionResponse (int type, ParticleCollisionResponse response)
 Set collision response.
ParticleEmitter getTypeCollisionEmitter (int type)
 Particle emitter to create instances from for colliding particles or null to spawn no instances.
void setTypeCollisionEmitter (int type, ParticleEmitter emitter)
 Set particle emitter to create instances from for colliding particles or null to spawn no instances.
float getTypeEmitMinImpulse (int type)
 minimum impulse required for colliding particles to emit instances.
void setTypeEmitMinImpulse (int type, float impulse)
 Set minimum impulse required for colliding particles to emit instances.
int getTypeEmitController (int type, ParticleEmitterEmitController controller)
 Emit controller index or -1 if not set.
void setTypeEmitController (int type, ParticleEmitterEmitController controller, int targetController)
 Set emit controller index or -1 if not set.
Type parameters
void setTypeParameterValue (int type, ParticleEmitterParameter parameter, float value)
 Set parameter value.
void setTypeParameterSpread (int type, ParticleEmitterParameter parameter, float spread)
 Set parameter spread.
void setTypeParameterControllerValue (int type, ParticleEmitterParameter parameter, int controller)
 Set parameter value curve controller.
void setTypeParameterCurveValue (int type, ParticleEmitterParameter parameter, CurveBezier curve)
 Set parameter value curve or null if not used.
void setTypeParameterControllerSpread (int type, ParticleEmitterParameter parameter, int controller)
 Set parameter spread curve controller.
void setTypeParameterCurveSpread (int type, ParticleEmitterParameter parameter, CurveBezier curve)
 Set parameter spread curve or null if not used.
void setTypeParameterCurveProgress (int type, ParticleEmitterParameter parameter, CurveBezier curve)
 Set parameter progress curve or null if not used.
void setTypeParameterCurveBeam (int type, ParticleEmitterParameter parameter, CurveBezier curve)
 Set parameter beam curve or null if not used.

Detailed Description

Particle emitter.

This is a native class.

Member Function Documentation

◆ getBurstLifetime()

float Dragengine.Scenery.ParticleEmitter.getBurstLifetime ( )

Burst lifetime.

References indexOfControllerNamed().

Referenced by setEmitBurst().

◆ getControllerAt()

ParticleEmitterController Dragengine.Scenery.ParticleEmitter.getControllerAt ( int index)

Get wrapper for controller.

Warning
The wrapper is only valid as long as the controller structure in the particle emitter is not changed.
Parameters
indexIndex of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller.
Exceptions
EOutOfBoundarycontroller is less than -getControllerCount() or larger than or equal to getControllerCount().

References getControllerAt().

Referenced by getControllerAt().

◆ getControllerCount()

int Dragengine.Scenery.ParticleEmitter.getControllerCount ( )

Nnumber of controllers.

References getControllerCount().

Referenced by getControllerCount().

◆ getControllerNamed()

ParticleEmitterController Dragengine.Scenery.ParticleEmitter.getControllerNamed ( String name)

Get wrapper for controller if present.

Warning
The wrapper is only valid as long as the controller structure in the particle emitter is not changed.
Parameters
nameName of controller. If no controller with this name is present null is returned.

Referenced by indexOfControllerNamed().

◆ getEmitBurst()

bool Dragengine.Scenery.ParticleEmitter.getEmitBurst ( )

Particles are emitted in bursts instead of continuous.

Referenced by getTypeCount().

◆ getTypeCastFrom()

ParticleEmitterCastFrom Dragengine.Scenery.ParticleEmitter.getTypeCastFrom ( int type)

Determines from what part of the model to cast particles from.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

Referenced by getTypeIntervalAsDistance().

◆ getTypeCollisionEmitter()

ParticleEmitter Dragengine.Scenery.ParticleEmitter.getTypeCollisionEmitter ( int type)

Particle emitter to create instances from for colliding particles or null to spawn no instances.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeTrailController().

Referenced by setTypeParameterSpread().

◆ getTypeCollisionResponse()

ParticleCollisionResponse Dragengine.Scenery.ParticleEmitter.getTypeCollisionResponse ( int type)

Collision response.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeTrailEmitter().

Referenced by setTypeEmitController().

◆ getTypeCount()

int Dragengine.Scenery.ParticleEmitter.getTypeCount ( )

Number of types.

References getEmitBurst().

Referenced by setTypeSkin().

◆ getTypeEmitController()

int Dragengine.Scenery.ParticleEmitter.getTypeEmitController ( int type,
ParticleEmitterEmitController controller )

Emit controller index or -1 if not set.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypePhysicsSize().

Referenced by setTypeParameterCurveSpread().

◆ getTypeEmitMinImpulse()

float Dragengine.Scenery.ParticleEmitter.getTypeEmitMinImpulse ( int type)

minimum impulse required for colliding particles to emit instances.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeTrailController().

Referenced by setTypeParameterCurveValue().

◆ getTypeIntervalAsDistance()

bool Dragengine.Scenery.ParticleEmitter.getTypeIntervalAsDistance ( int type)

Interval is used as distance instead of time.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeCastFrom().

Referenced by setTypeTrailController().

◆ getTypeModel()

Model Dragengine.Scenery.ParticleEmitter.getTypeModel ( int type)

Type model or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeCount().

Referenced by setTypeModelSkin().

◆ getTypeModelSkin()

Skin Dragengine.Scenery.ParticleEmitter.getTypeModelSkin ( int type)

Skin for the model used for casting or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeSkin().

Referenced by getTypeSimulationType().

◆ getTypePhysicsSize()

float Dragengine.Scenery.ParticleEmitter.getTypePhysicsSize ( int type)

Physics size of the particle.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

Referenced by setTypeEmitMinImpulse().

◆ getTypeSimulationType()

ParticleEmitterSimulation Dragengine.Scenery.ParticleEmitter.getTypeSimulationType ( int type)

Simulation type.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeModelSkin().

Referenced by setTypeTrailEmitter().

◆ getTypeSkin()

Skin Dragengine.Scenery.ParticleEmitter.getTypeSkin ( int type)

Type skin or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

Referenced by setTypeModel().

◆ getTypeTrailController()

int Dragengine.Scenery.ParticleEmitter.getTypeTrailController ( int type,
ParticleEmitterEmitController controller )

Trail controller index or -1 if not set.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeSimulationType().

Referenced by getTypeCollisionEmitter().

◆ getTypeTrailEmitter()

ParticleEmitter Dragengine.Scenery.ParticleEmitter.getTypeTrailEmitter ( int type)

Particle emitter to create instances from for trails behind particles or null to use no trail.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeCastFrom().

Referenced by getTypeCollisionResponse().

◆ indexOfControllerNamed()

int Dragengine.Scenery.ParticleEmitter.indexOfControllerNamed ( String name)

Index of named controller or -1 if not found.

References getControllerNamed().

Referenced by getBurstLifetime().

◆ new()

ParticleEmitter Dragengine.Scenery.ParticleEmitter.new ( )

Create particle emitter.

References new().

Referenced by new().

◆ setBurstLifetime()

void Dragengine.Scenery.ParticleEmitter.setBurstLifetime ( float lifetime)

Set the burst liftime.

Referenced by setEmitBurst().

◆ setControllerCount()

void Dragengine.Scenery.ParticleEmitter.setControllerCount ( int count)

Set number of controllers.

Exceptions
EInvalidParamcount is less than 0.

References setControllerCount().

Referenced by setControllerCount().

◆ setEmitBurst()

void Dragengine.Scenery.ParticleEmitter.setEmitBurst ( bool emitBurst)

Set if particles are emitted in bursts instead of continuous.

References getBurstLifetime(), and setBurstLifetime().

Referenced by setTypeCount().

◆ setTypeCastFrom()

void Dragengine.Scenery.ParticleEmitter.setTypeCastFrom ( int type,
ParticleEmitterCastFrom castFrom )

Sets from what part of the model to cast particles from.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeModel().

Referenced by getTypeTrailEmitter().

◆ setTypeCollisionEmitter()

void Dragengine.Scenery.ParticleEmitter.setTypeCollisionEmitter ( int type,
ParticleEmitter emitter )

Set particle emitter to create instances from for colliding particles or null to spawn no instances.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

Referenced by setTypeParameterControllerValue().

◆ setTypeCollisionResponse()

void Dragengine.Scenery.ParticleEmitter.setTypeCollisionResponse ( int type,
ParticleCollisionResponse response )

Set collision response.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeTrailEmitter().

Referenced by setTypeParameterValue().

◆ setTypeCount()

void Dragengine.Scenery.ParticleEmitter.setTypeCount ( int count)

Set number of types.

References setEmitBurst().

Referenced by getTypeModel().

◆ setTypeEmitController()

void Dragengine.Scenery.ParticleEmitter.setTypeEmitController ( int type,
ParticleEmitterEmitController controller,
int targetController )

Set emit controller index or -1 if not set.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeCollisionResponse().

Referenced by setTypeParameterCurveProgress().

◆ setTypeEmitMinImpulse()

void Dragengine.Scenery.ParticleEmitter.setTypeEmitMinImpulse ( int type,
float impulse )

Set minimum impulse required for colliding particles to emit instances.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypePhysicsSize().

Referenced by setTypeParameterControllerSpread().

◆ setTypeIntervalAsDistance()

void Dragengine.Scenery.ParticleEmitter.setTypeIntervalAsDistance ( int type,
bool intervalAsDistance )

Set if interval is used as distance instead of time.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

Referenced by setTypePhysicsSize().

◆ setTypeModel()

void Dragengine.Scenery.ParticleEmitter.setTypeModel ( int type,
Model model )

Set type model or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeSkin().

Referenced by setTypeCastFrom().

◆ setTypeModelSkin()

void Dragengine.Scenery.ParticleEmitter.setTypeModelSkin ( int type,
Skin skin )

Set skin for the model used for casting or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeModel().

Referenced by setTypeSimulationType().

◆ setTypeParameterControllerSpread()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterControllerSpread ( int type,
ParticleEmitterParameter parameter,
int controller )

Set parameter spread curve controller.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References setTypeEmitMinImpulse().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterControllerValue()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterControllerValue ( int type,
ParticleEmitterParameter parameter,
int controller )

Set parameter value curve controller.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References setTypeCollisionEmitter().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterCurveBeam()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveBeam ( int type,
ParticleEmitterParameter parameter,
CurveBezier curve )

Set parameter beam curve or null if not used.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References setTypeParameterControllerSpread(), setTypeParameterControllerValue(), setTypeParameterCurveBeam(), setTypeParameterCurveProgress(), setTypeParameterCurveSpread(), setTypeParameterCurveValue(), setTypeParameterSpread(), and setTypeParameterValue().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterCurveProgress()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveProgress ( int type,
ParticleEmitterParameter parameter,
CurveBezier curve )

Set parameter progress curve or null if not used.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References setTypeEmitController().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterCurveSpread()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveSpread ( int type,
ParticleEmitterParameter parameter,
CurveBezier curve )

Set parameter spread curve or null if not used.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References getTypeEmitController().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterCurveValue()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveValue ( int type,
ParticleEmitterParameter parameter,
CurveBezier curve )

Set parameter value curve or null if not used.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References getTypeEmitMinImpulse().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterSpread()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterSpread ( int type,
ParticleEmitterParameter parameter,
float spread )

Set parameter spread.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References getTypeCollisionEmitter().

Referenced by setTypeParameterCurveBeam().

◆ setTypeParameterValue()

void Dragengine.Scenery.ParticleEmitter.setTypeParameterValue ( int type,
ParticleEmitterParameter parameter,
float value )

Set parameter value.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().
EInvalidParamparameter is not a valid value.

References setTypeCollisionResponse().

Referenced by setTypeParameterCurveBeam().

◆ setTypePhysicsSize()

void Dragengine.Scenery.ParticleEmitter.setTypePhysicsSize ( int type,
float size )

Set physics size of the particle.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeIntervalAsDistance().

Referenced by getTypeEmitController().

◆ setTypeSimulationType()

void Dragengine.Scenery.ParticleEmitter.setTypeSimulationType ( int type,
ParticleEmitterSimulation simulationType )

Set simulation type.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References setTypeModelSkin().

Referenced by getTypeTrailController().

◆ setTypeSkin()

void Dragengine.Scenery.ParticleEmitter.setTypeSkin ( int type,
Skin skin )

Set type skin or null.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeCount().

Referenced by getTypeModelSkin().

◆ setTypeTrailController()

void Dragengine.Scenery.ParticleEmitter.setTypeTrailController ( int type,
ParticleEmitterEmitController controller,
int targetController )

Set trail controller index or -1 if not set.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeIntervalAsDistance().

Referenced by getTypeEmitMinImpulse().

◆ setTypeTrailEmitter()

void Dragengine.Scenery.ParticleEmitter.setTypeTrailEmitter ( int type,
ParticleEmitter emitter )

Set particle emitter to create instances from for trails behind particles or null to use no trail.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to getTypeCount().

References getTypeSimulationType().

Referenced by setTypeCollisionResponse().


The documentation for this class was generated from the following file: