LuaDocs/AEmitter

From Data Realms Wiki

Revision as of 08:56, 15 May 2014 by LuaBot (Talk | contribs)
Jump to: navigation, search

Contents

Parent: Attachable

Concrete Class. An attachable MO that creates and emits particle MO's.

Go back to Class Index


Properties

ClassName

The class name of this Entity.A string with the friendly-formatted type name of this object.

BurstScale

The scale factor that will be applied to the regular spread and emission velocity to get the burst particle parameters.The scale factor.

EmitAngle

The angle of direction that the emitted particles will be shot at.A float with the angle in radians.

GetThrottle

The normalized throttle scalar which controls how to affect the emission rate as per the emisison rate range. Depricated for Lua, use the Throttle property instead.A float with the normalized throttle scalar. 1.0 means max throttle, 0 means normal, -1.0 means least emission rate.

Throttle

The normalized throttle scalar which controls how to affect the emission rate as per the emisison rate range. Depricated for Lua, use the Throttle property instead.A float with the normalized throttle scalar. 1.0 means max throttle, 0 means normal, -1.0 means least emission rate.

BurstSpacing

The BurstSpacing for this emitter.The BurstSpacing in ms.


Functions

IsEmitting

Indicates whether this AEmitter is currently enabled and emitting.

Arguments:

  • None.

Return value:

Whether it's emitting or not.


EnableEmission

Sets this AEmitter to start emitting at the set rate, or to stop.

Arguments:

  • Whether to enable or disable emission.

Return value:

None.


GetEmitVector

A vector in the direction, including the rotation of the emitter, that the emitted particles will be shot at.

Arguments:

  • None.

Return value:

A unit vector.


GetRecoilVector

A vector in the opposite direction, including the rotation of the emitter, that the emitted particles will be shot at.

Arguments:

  • None.

Return value:

A unit vector.


EstimateImpulse

Calculates the forces this emitter applies on any parent.

Arguments:

  • Whether to calculate a burst update or not.

Return value:

The approximate impulse generated by the emitter.


TriggerBurst

Triggers a one-shot burst of emissions in the number that has previously been set. The burst will happen during the next Update of this AEmitter.

Arguments:

  • None.

Return value:

None.


IsSetToBurst

Indicates whether this AEmitter is set to burst next update or not.

Arguments:

  • None.

Return value:

Whether a burst is gonna happen or not..


CanTriggerBurst

Checks if it is possible to trigger a one-shot burst of emissions during the next Update of this AEmitter.

Arguments:

  • None.

Return value:

If it is possible to trigger a burst.


Go back to Class Index

Personal tools