|
Drag[en]gine Script Module DragonScript 1.35
|
Particle emitter. More...
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. | |
Particle emitter.
This is a native class.
| float Dragengine.Scenery.ParticleEmitter.getBurstLifetime | ( | ) |
| 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(). |
References getControllerAt().
Referenced by getControllerAt().
| int Dragengine.Scenery.ParticleEmitter.getControllerCount | ( | ) |
| 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. |
Referenced by indexOfControllerNamed().
| bool Dragengine.Scenery.ParticleEmitter.getEmitBurst | ( | ) |
Particles are emitted in bursts instead of continuous.
Referenced by getTypeCount().
| 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(). |
Referenced by getTypeIntervalAsDistance().
| 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(). |
References getTypeTrailController().
Referenced by setTypeParameterSpread().
| ParticleCollisionResponse Dragengine.Scenery.ParticleEmitter.getTypeCollisionResponse | ( | int | type | ) |
Collision response.
| EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
References getTypeTrailEmitter().
Referenced by setTypeEmitController().
| int Dragengine.Scenery.ParticleEmitter.getTypeCount | ( | ) |
| 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(). |
References setTypePhysicsSize().
Referenced by setTypeParameterCurveSpread().
| 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(). |
References setTypeTrailController().
Referenced by setTypeParameterCurveValue().
| 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(). |
References getTypeCastFrom().
Referenced by setTypeTrailController().
| Model Dragengine.Scenery.ParticleEmitter.getTypeModel | ( | int | type | ) |
Type model or null.
| EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
References setTypeCount().
Referenced by setTypeModelSkin().
| 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(). |
References setTypeSkin().
Referenced by getTypeSimulationType().
| 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(). |
Referenced by setTypeEmitMinImpulse().
| ParticleEmitterSimulation Dragengine.Scenery.ParticleEmitter.getTypeSimulationType | ( | int | type | ) |
Simulation type.
| EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
References getTypeModelSkin().
Referenced by setTypeTrailEmitter().
| Skin Dragengine.Scenery.ParticleEmitter.getTypeSkin | ( | int | type | ) |
Type skin or null.
| EOutOfBoundary | type is less than 0 or larger than or equal to getTypeCount(). |
Referenced by setTypeModel().
| 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(). |
References setTypeSimulationType().
Referenced by getTypeCollisionEmitter().
| 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(). |
References setTypeCastFrom().
Referenced by getTypeCollisionResponse().
| int Dragengine.Scenery.ParticleEmitter.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
References getControllerNamed().
Referenced by getBurstLifetime().
| ParticleEmitter Dragengine.Scenery.ParticleEmitter.new | ( | ) |
| void Dragengine.Scenery.ParticleEmitter.setBurstLifetime | ( | float | lifetime | ) |
Set the burst liftime.
Referenced by setEmitBurst().
| void Dragengine.Scenery.ParticleEmitter.setControllerCount | ( | int | count | ) |
Set number of controllers.
| EInvalidParam | count is less than 0. |
References setControllerCount().
Referenced by setControllerCount().
| void Dragengine.Scenery.ParticleEmitter.setEmitBurst | ( | bool | emitBurst | ) |
Set if particles are emitted in bursts instead of continuous.
References getBurstLifetime(), and setBurstLifetime().
Referenced by setTypeCount().
| 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(). |
References setTypeModel().
Referenced by getTypeTrailEmitter().
| 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(). |
Referenced by setTypeParameterControllerValue().
| 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(). |
References setTypeTrailEmitter().
Referenced by setTypeParameterValue().
| void Dragengine.Scenery.ParticleEmitter.setTypeCount | ( | int | count | ) |
| 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(). |
References getTypeCollisionResponse().
Referenced by setTypeParameterCurveProgress().
| 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(). |
References getTypePhysicsSize().
Referenced by setTypeParameterControllerSpread().
| 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(). |
Referenced by setTypePhysicsSize().
| 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(). |
References getTypeSkin().
Referenced by setTypeCastFrom().
| 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(). |
References getTypeModel().
Referenced by setTypeSimulationType().
| 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. |
References setTypeEmitMinImpulse().
Referenced by setTypeParameterCurveBeam().
| 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. |
References setTypeCollisionEmitter().
Referenced by setTypeParameterCurveBeam().
| 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. |
References setTypeParameterControllerSpread(), setTypeParameterControllerValue(), setTypeParameterCurveBeam(), setTypeParameterCurveProgress(), setTypeParameterCurveSpread(), setTypeParameterCurveValue(), setTypeParameterSpread(), and setTypeParameterValue().
Referenced by setTypeParameterCurveBeam().
| 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. |
References setTypeEmitController().
Referenced by setTypeParameterCurveBeam().
| 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. |
References getTypeEmitController().
Referenced by setTypeParameterCurveBeam().
| 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. |
References getTypeEmitMinImpulse().
Referenced by setTypeParameterCurveBeam().
| 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. |
References getTypeCollisionEmitter().
Referenced by setTypeParameterCurveBeam().
| 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. |
References setTypeCollisionResponse().
Referenced by setTypeParameterCurveBeam().
| 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(). |
References setTypeIntervalAsDistance().
Referenced by getTypeEmitController().
| 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(). |
References setTypeModelSkin().
Referenced by getTypeTrailController().
| 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(). |
References getTypeCount().
Referenced by getTypeModelSkin().
| 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(). |
References getTypeIntervalAsDistance().
Referenced by getTypeEmitMinImpulse().
| 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(). |
References getTypeSimulationType().
Referenced by setTypeCollisionResponse().