|
Drag[en]gine Script Module DragonScript 1.32.1
|
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 | ( | ) |
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(). |