Drag[en]gine Script Module DragonScript
1.23
|
Particle emitter instance. More...
Public Member Functions | |
Constructors | |
ParticleEmitterInstance | new () |
Create particle emitter instance. More... | |
Management | |
ParticleEmitter | getEmitter () |
Pparticle emitter or null if not set. More... | |
void | setEmitter (ParticleEmitter emitter) |
Set particle emitter or null if not set. More... | |
DVector | getPosition () |
Position. More... | |
void | setPosition (DVector position) |
Set position. More... | |
Quaternion | getOrientation () |
Orientation. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
bool | getEnableCasting () |
Casting particles is enabled. More... | |
void | setEnableCasting (bool enable) |
Set if casting particles is enabled. More... | |
bool | getRemoveAfterLastParticleDied () |
Emitter instance is removed from the world if the last particle died. More... | |
void | setRemoveAfterLastParticleDied (bool remove) |
Set if the emitter instance is removed from the world if the last particle died. More... | |
float | getTimeScale () |
Scaling for the time to be added to controllers linked to time. More... | |
void | setTimeScale (float scale) |
Set scaling for the time to be added to controllers linked to time. More... | |
float | getWarmUpTime () |
Warm up time used when enabling casting. More... | |
void | setWarmUpTime (float warmUpTime) |
Set warm up time used when enabling casting. More... | |
float | getBurstTime () |
Burst time. Set by the physics module to be used by the graphics module. More... | |
void | setBurstTime (float burstTime) |
Set burst time. Set by the physics module to be used by the graphics module. More... | |
LayerMask | getLayerMask () |
Rendr layer mask. More... | |
void | setLayerMask (LayerMask layerMask) |
Set render layer mask. More... | |
CollisionFilter | getCollisionFilter () |
Collision filter. More... | |
void | setCollisionFilter (CollisionFilter collisionFilter) |
Set collision filter. More... | |
void | resetBurst () |
Reset burst. More... | |
void | killAllParticles () |
Kill all particles. More... | |
ParticleEmitterInstanceListener | getListener () |
Listener or null if not set. More... | |
void | setListener (ParticleEmitterInstanceListener listener) |
Set listener or null if not set. More... | |
Types | |
Component | getTypeComponent (int type) |
Component for type used for casting or null. More... | |
void | setTypeComponent (int type, Component component) |
Set component for type used for casting or null. More... | |
DynamicSkin | getTypeDynamicSkin (int type) |
Dynamic skin for type or null if not used. More... | |
void | setTypeDynamicSkin (int type, DynamicSkin dynamicSkin) |
Set dynamic skin for type or null if not used. More... | |
Controllers | |
int | getControllerCount () |
Nnumber 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... | |
void | copyControllerStates (ParticleEmitterInstance instance, int count) |
Copy the first count controller values and vectors from another particle emitter instance. More... | |
void | copyControllerStates (ParticleEmitterInstance instance, int offset, int count) |
Copy the first count controller values and vectors from another particle emitter instance. More... | |
void | copyNamedControllerStates (ParticleEmitterInstance instance) |
Copy name matching controller values and vectors from another particle emitter instance. More... | |
Ignore colliders | |
int | getIgnoreColliderCount () |
Number of colliders to ignore. More... | |
Collider | getIgnoreColliderAt (int index) |
Ignore collider at index. More... | |
bool | hasIgnoreCollider (Collider collider) |
Ignore collider is present. More... | |
void | addIgnoreCollider (Collider collider) |
Add collider to ignore. More... | |
void | removeIgnoreCollider (Collider collider) |
Remove collider to ignore. More... | |
void | removeAllIgnoreColliders () |
Remove all colliders to ignore. More... | |
Particle emitter instance.
This is a native class.
void Dragengine.Scenery.ParticleEmitterInstance.addIgnoreCollider | ( | Collider | collider | ) |
Add collider to ignore.
void Dragengine.Scenery.ParticleEmitterInstance.copyControllerStates | ( | ParticleEmitterInstance | instance, |
int | count | ||
) |
Copy the first count controller values and vectors from another particle emitter instance.
Bones outside the number of controllers are ignored.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.ParticleEmitterInstance.copyControllerStates | ( | ParticleEmitterInstance | instance, |
int | offset, | ||
int | count | ||
) |
Copy the first count controller values and vectors from another particle emitter instance.
Offset index of controller to copy from other particle emitter. Bones outside the number of controllers are ignored.
EInvalidParam | count is less than 0. |
void Dragengine.Scenery.ParticleEmitterInstance.copyNamedControllerStates | ( | ParticleEmitterInstance | instance | ) |
Copy name matching controller values and vectors from another particle emitter instance.
Non-matching controllers are ignored.
float Dragengine.Scenery.ParticleEmitterInstance.getBurstTime | ( | ) |
Burst time. Set by the physics module to be used by the graphics module.
CollisionFilter Dragengine.Scenery.ParticleEmitterInstance.getCollisionFilter | ( | ) |
Collision filter.
ParticleEmitterController Dragengine.Scenery.ParticleEmitterInstance.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.ParticleEmitterInstance.getControllerCount | ( | ) |
Nnumber of controllers.
ParticleEmitterController Dragengine.Scenery.ParticleEmitterInstance.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
ParticleEmitter Dragengine.Scenery.ParticleEmitterInstance.getEmitter | ( | ) |
Pparticle emitter or null if not set.
bool Dragengine.Scenery.ParticleEmitterInstance.getEnableCasting | ( | ) |
Casting particles is enabled.
Collider Dragengine.Scenery.ParticleEmitterInstance.getIgnoreColliderAt | ( | int | index | ) |
Ignore collider at index.
deeInvalidParam | index is less than 0 or equal than or equal to getIgnoreColliderCount(). |
int Dragengine.Scenery.ParticleEmitterInstance.getIgnoreColliderCount | ( | ) |
Number of colliders to ignore.
LayerMask Dragengine.Scenery.ParticleEmitterInstance.getLayerMask | ( | ) |
Rendr layer mask.
ParticleEmitterInstanceListener Dragengine.Scenery.ParticleEmitterInstance.getListener | ( | ) |
Listener or null if not set.
Quaternion Dragengine.Scenery.ParticleEmitterInstance.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.ParticleEmitterInstance.getPosition | ( | ) |
Position.
bool Dragengine.Scenery.ParticleEmitterInstance.getRemoveAfterLastParticleDied | ( | ) |
Emitter instance is removed from the world if the last particle died.
float Dragengine.Scenery.ParticleEmitterInstance.getTimeScale | ( | ) |
Scaling for the time to be added to controllers linked to time.
Component Dragengine.Scenery.ParticleEmitterInstance.getTypeComponent | ( | int | type | ) |
Component for type used for casting or null.
EOutOfBoundary | type is less than 0 or larger than or equal to emitter instance type count. |
DynamicSkin Dragengine.Scenery.ParticleEmitterInstance.getTypeDynamicSkin | ( | int | type | ) |
Dynamic skin for type or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to emitter instance type count. |
float Dragengine.Scenery.ParticleEmitterInstance.getWarmUpTime | ( | ) |
Warm up time used when enabling casting.
bool Dragengine.Scenery.ParticleEmitterInstance.hasIgnoreCollider | ( | Collider | collider | ) |
Ignore collider is present.
int Dragengine.Scenery.ParticleEmitterInstance.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
void Dragengine.Scenery.ParticleEmitterInstance.killAllParticles | ( | ) |
Kill all particles.
ParticleEmitterInstance Dragengine.Scenery.ParticleEmitterInstance.new | ( | ) |
Create particle emitter instance.
void Dragengine.Scenery.ParticleEmitterInstance.removeAllIgnoreColliders | ( | ) |
Remove all colliders to ignore.
void Dragengine.Scenery.ParticleEmitterInstance.removeIgnoreCollider | ( | Collider | collider | ) |
Remove collider to ignore.
deeInvalidParam | collider is absent. |
void Dragengine.Scenery.ParticleEmitterInstance.resetBurst | ( | ) |
Reset burst.
void Dragengine.Scenery.ParticleEmitterInstance.setBurstTime | ( | float | burstTime | ) |
Set burst time. Set by the physics module to be used by the graphics module.
void Dragengine.Scenery.ParticleEmitterInstance.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter.
void Dragengine.Scenery.ParticleEmitterInstance.setEmitter | ( | ParticleEmitter | emitter | ) |
Set particle emitter or null if not set.
void Dragengine.Scenery.ParticleEmitterInstance.setEnableCasting | ( | bool | enable | ) |
Set if casting particles is enabled.
void Dragengine.Scenery.ParticleEmitterInstance.setLayerMask | ( | LayerMask | layerMask | ) |
Set render layer mask.
void Dragengine.Scenery.ParticleEmitterInstance.setListener | ( | ParticleEmitterInstanceListener | listener | ) |
Set listener or null if not set.
void Dragengine.Scenery.ParticleEmitterInstance.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.ParticleEmitterInstance.setPosition | ( | DVector | position | ) |
Set position.
void Dragengine.Scenery.ParticleEmitterInstance.setRemoveAfterLastParticleDied | ( | bool | remove | ) |
Set if the emitter instance is removed from the world if the last particle died.
void Dragengine.Scenery.ParticleEmitterInstance.setTimeScale | ( | float | scale | ) |
Set scaling for the time to be added to controllers linked to time.
void Dragengine.Scenery.ParticleEmitterInstance.setTypeComponent | ( | int | type, |
Component | component | ||
) |
Set component for type used for casting or null.
EOutOfBoundary | type is less than 0 or larger than or equal to emitter instance type count. |
void Dragengine.Scenery.ParticleEmitterInstance.setTypeDynamicSkin | ( | int | type, |
DynamicSkin | dynamicSkin | ||
) |
Set dynamic skin for type or null if not used.
EOutOfBoundary | type is less than 0 or larger than or equal to emitter instance type count. |
void Dragengine.Scenery.ParticleEmitterInstance.setWarmUpTime | ( | float | warmUpTime | ) |
Set warm up time used when enabling casting.