BBMOD_MixQuaternionFromSpeedModule
A constructor defined in BBMOD_MixQuaternionFromSpeedModule.gml
Extends BBMOD_ParticleModule
new BBMOD_MixQuaternionFromSpeedModule([_property[, _from[, _to[, _min[, _max]]]]])
Description
A universal particle module that mixes particles' quaternion property between two values based on the magnitude of their velocity vector.
Arguments
| Name |
Type |
Description |
| _property |
Real |
The first of the four consecutive properties that together form a quaternion. Use values from BBMOD_EParticle. Defaults to undefined. |
| _from |
Struct.BBMOD_Quaternion |
The quaternion when the particle has a full health. Defaults to an identity quaternion. |
| _to |
Struct.BBMOD_Quaternion |
The quaternion when the particle has no health left. Defaults to _from. |
| _min |
Real |
If the particles' speed is less than this, then the property is equal to _from. Defaults to 0.0. |
| _max |
Real |
If the particles' speed is greater than this, then the property is equal to _to. Defaults to 1.0. |
Properties
Inherited properties
| Name |
Description |
| Enabled |
If true then the module is enabled. Defaults value is true. |
Inherited methods
| Name |
Description |
| on_finish |
Executed once at the end of the emitter's emission cycle. Never executed if the emitted particle system is looping! |
| on_particle_finish |
Executed when a particle dies. |
| on_particle_start |
Executed when a new particle is spawned. |
| on_start |
Executed at the beginning of the emitter's emission cycle and every time it loops. |
| on_update |
Executed every time the emitter is updated. |
See also
BBMOD_EParticle