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