Drag[en]gine Script Module DragonScript
1.23
|
Particle emitter. More...
Public Member Functions | |
Constructors | |
ParticleEmitter | new () |
Create particle emitter. More... | |
Controllers | |
int | getControllerCount () |
Nnumber of controllers. More... | |
void | setControllerCount (int count) |
Set number of controllers. More... | |
ParticleEmitterController | getControllerAt (int index) |
Get wrapper for controller. More... | |
ParticleEmitterController | getControllerNamed (String name) |
Get wrapper for controller if present. More... | |
int | indexOfControllerNamed (String name) |
Index of named controller or -1 if not found. More... | |
Burst | |
float | getBurstLifetime () |
Burst lifetime. More... | |
void | setBurstLifetime (float lifetime) |
Set the burst liftime. More... | |
bool | getEmitBurst () |
Particles are emitted in bursts instead of continuous. More... | |
void | setEmitBurst (bool emitBurst) |
Set if particles are emitted in bursts instead of continuous. More... | |
Types | |
int | getTypeCount () |
Number of types. More... | |
void | setTypeCount (int count) |
Set number of types. More... | |
Skin | getTypeSkin (int type) |
Type skin or null. More... | |
void | setTypeSkin (int type, Skin skin) |
Set type skin or null. More... | |
Model | getTypeModel (int type) |
Type model or null. More... | |
void | setTypeModel (int type, Model model) |
Set type model or null. More... | |
Skin | getTypeModelSkin (int type) |
Skin for the model used for casting or null. More... | |
void | setTypeModelSkin (int type, Skin skin) |
Set skin for the model used for casting or null. More... | |
ParticleEmitterCastFrom | getTypeCastFrom (int type) |
Determines from what part of the model to cast particles from. More... | |
void | setTypeCastFrom (int type, ParticleEmitterCastFrom castFrom) |
Sets from what part of the model to cast particles from. More... | |
ParticleEmitterSimulation | getTypeSimulationType (int type) |
Simulation type. More... | |
void | setTypeSimulationType (int type, ParticleEmitterSimulation simulationType) |
Set simulation type. More... | |
bool | getTypeIntervalAsDistance (int type) |
Interval is used as distance instead of time. More... | |
void | setTypeIntervalAsDistance (int type, bool intervalAsDistance) |
Set if interval is used as distance instead of time. More... | |
ParticleEmitter | getTypeTrailEmitter (int type) |
Particle emitter to create instances from for trails behind particles or null to use no trail. More... | |
void | setTypeTrailEmitter (int type, ParticleEmitter emitter) |
Set particle emitter to create instances from for trails behind particles or null to use no trail. More... | |
int | getTypeTrailController (int type, ParticleEmitterEmitController controller) |
Trail controller index or -1 if not set. More... | |
void | setTypeTrailController (int type, ParticleEmitterEmitController controller, int targetController) |
Set trail controller index or -1 if not set. More... | |
float | getTypePhysicsSize (int type) |
Physics size of the particle. More... | |
void | setTypePhysicsSize (int type, float size) |
Set physics size of the particle. More... | |
ParticleCollisionResponse | getTypeCollisionResponse (int type) |
Collision response. More... | |
void | setTypeCollisionResponse (int type, ParticleCollisionResponse response) |
Set collision response. More... | |
ParticleEmitter | getTypeCollisionEmitter (int type) |
Particle emitter to create instances from for colliding particles or null to spawn no instances. More... | |
void | setTypeCollisionEmitter (int type, ParticleEmitter emitter) |
Set particle emitter to create instances from for colliding particles or null to spawn no instances. More... | |
float | getTypeEmitMinImpulse (int type) |
minimum impulse required for colliding particles to emit instances. More... | |
void | setTypeEmitMinImpulse (int type, float impulse) |
Set minimum impulse required for colliding particles to emit instances. More... | |
int | getTypeEmitController (int type, ParticleEmitterEmitController controller) |
Emit controller index or -1 if not set. More... | |
void | setTypeEmitController (int type, ParticleEmitterEmitController controller, int targetController) |
Set emit controller index or -1 if not set. More... | |
Type parameters | |
void | setTypeParameterValue (int type, ParticleEmitterParameter parameter, float value) |
Set parameter value. More... | |
void | setTypeParameterSpread (int type, ParticleEmitterParameter parameter, float spread) |
Set parameter spread. More... | |
void | setTypeParameterControllerValue (int type, ParticleEmitterParameter parameter, int controller) |
Set parameter value curve controller. More... | |
void | setTypeParameterCurveValue (int type, ParticleEmitterParameter parameter, CurveBezier curve) |
Set parameter value curve or null if not used. More... | |
void | setTypeParameterControllerSpread (int type, ParticleEmitterParameter parameter, int controller) |
Set parameter spread curve controller. More... | |
void | setTypeParameterCurveSpread (int type, ParticleEmitterParameter parameter, CurveBezier curve) |
Set parameter spread curve or null if not used. More... | |
void | setTypeParameterCurveProgress (int type, ParticleEmitterParameter parameter, CurveBezier curve) |
Set parameter progress curve or null if not used. More... | |
void | setTypeParameterCurveBeam (int type, ParticleEmitterParameter parameter, CurveBezier curve) |
Set parameter beam curve or null if not used. More... | |
Particle emitter.
This is a native class.
float Dragengine.Scenery.ParticleEmitter.getBurstLifetime | ( | ) |
Burst lifetime.
ParticleEmitterController Dragengine.Scenery.ParticleEmitter.getControllerAt | ( | int | index | ) |
Get wrapper for controller.
index | Index of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller. |
EOutOfBoundary | controller is less than -getControllerCount() or larger than or equal to getControllerCount(). |
int Dragengine.Scenery.ParticleEmitter.getControllerCount | ( | ) |
Nnumber of controllers.
ParticleEmitterController Dragengine.Scenery.ParticleEmitter.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
bool Dragengine.Scenery.ParticleEmitter.getEmitBurst | ( | ) |
Particles are emitted in bursts instead of continuous.
ParticleEmitterCastFrom Dragengine.Scenery.ParticleEmitter.getTypeCastFrom | ( | int | type | ) |
Determines from what part of the model to cast particles from.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
ParticleEmitter Dragengine.Scenery.ParticleEmitter.getTypeCollisionEmitter | ( | int | type | ) |
Particle emitter to create instances from for colliding particles or null to spawn no instances.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
ParticleCollisionResponse Dragengine.Scenery.ParticleEmitter.getTypeCollisionResponse | ( | int | type | ) |
Collision response.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
int Dragengine.Scenery.ParticleEmitter.getTypeCount | ( | ) |
Number of types.
int Dragengine.Scenery.ParticleEmitter.getTypeEmitController | ( | int | type, |
ParticleEmitterEmitController | controller | ||
) |
Emit controller index or -1 if not set.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
float Dragengine.Scenery.ParticleEmitter.getTypeEmitMinImpulse | ( | int | type | ) |
minimum impulse required for colliding particles to emit instances.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
bool Dragengine.Scenery.ParticleEmitter.getTypeIntervalAsDistance | ( | int | type | ) |
Interval is used as distance instead of time.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
Model Dragengine.Scenery.ParticleEmitter.getTypeModel | ( | int | type | ) |
Type model or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
Skin Dragengine.Scenery.ParticleEmitter.getTypeModelSkin | ( | int | type | ) |
Skin for the model used for casting or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
float Dragengine.Scenery.ParticleEmitter.getTypePhysicsSize | ( | int | type | ) |
Physics size of the particle.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
ParticleEmitterSimulation Dragengine.Scenery.ParticleEmitter.getTypeSimulationType | ( | int | type | ) |
Simulation type.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
Skin Dragengine.Scenery.ParticleEmitter.getTypeSkin | ( | int | type | ) |
Type skin or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
int Dragengine.Scenery.ParticleEmitter.getTypeTrailController | ( | int | type, |
ParticleEmitterEmitController | controller | ||
) |
Trail controller index or -1 if not set.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
ParticleEmitter Dragengine.Scenery.ParticleEmitter.getTypeTrailEmitter | ( | int | type | ) |
Particle emitter to create instances from for trails behind particles or null to use no trail.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
int Dragengine.Scenery.ParticleEmitter.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
ParticleEmitter Dragengine.Scenery.ParticleEmitter.new | ( | ) |
Create particle emitter.
void Dragengine.Scenery.ParticleEmitter.setBurstLifetime | ( | float | lifetime | ) |
Set the burst liftime.
void Dragengine.Scenery.ParticleEmitter.setControllerCount | ( | int | count | ) |
Set number of controllers.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.ParticleEmitter.setEmitBurst | ( | bool | emitBurst | ) |
Set if particles are emitted in bursts instead of continuous.
void Dragengine.Scenery.ParticleEmitter.setTypeCastFrom | ( | int | type, |
ParticleEmitterCastFrom | castFrom | ||
) |
Sets from what part of the model to cast particles from.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
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.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeCollisionResponse | ( | int | type, |
ParticleCollisionResponse | response | ||
) |
Set collision response.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeCount | ( | int | count | ) |
Set number of types.
void Dragengine.Scenery.ParticleEmitter.setTypeEmitController | ( | int | type, |
ParticleEmitterEmitController | controller, | ||
int | targetController | ||
) |
Set emit controller index or -1 if not set.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeEmitMinImpulse | ( | int | type, |
float | impulse | ||
) |
Set minimum impulse required for colliding particles to emit instances.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeIntervalAsDistance | ( | int | type, |
bool | intervalAsDistance | ||
) |
Set if interval is used as distance instead of time.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeModel | ( | int | type, |
Model | model | ||
) |
Set type model or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeModelSkin | ( | int | type, |
Skin | skin | ||
) |
Set skin for the model used for casting or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterControllerSpread | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
int | controller | ||
) |
Set parameter spread curve controller.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterControllerValue | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
int | controller | ||
) |
Set parameter value curve controller.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveBeam | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
CurveBezier | curve | ||
) |
Set parameter beam curve or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveProgress | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
CurveBezier | curve | ||
) |
Set parameter progress curve or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveSpread | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
CurveBezier | curve | ||
) |
Set parameter spread curve or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterCurveValue | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
CurveBezier | curve | ||
) |
Set parameter value curve or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterSpread | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
float | spread | ||
) |
Set parameter spread.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypeParameterValue | ( | int | type, |
ParticleEmitterParameter | parameter, | ||
float | value | ||
) |
Set parameter value.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
EInvalidParam | parameter is not a valid value. |
void Dragengine.Scenery.ParticleEmitter.setTypePhysicsSize | ( | int | type, |
float | size | ||
) |
Set physics size of the particle.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeSimulationType | ( | int | type, |
ParticleEmitterSimulation | simulationType | ||
) |
Set simulation type.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeSkin | ( | int | type, |
Skin | skin | ||
) |
Set type skin or null.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
void Dragengine.Scenery.ParticleEmitter.setTypeTrailController | ( | int | type, |
ParticleEmitterEmitController | controller, | ||
int | targetController | ||
) |
Set trail controller index or -1 if not set.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
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.
EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |