|
Thrive
|
Emitter for compound particles. More...
#include <compound_emitter_system.h>
Public Member Functions | |
| void | emitCompound (CompoundId compoundId, double amount, double angle, double radius) |
| Emits an compound according to the set properties. More... | |
| void | load (const StorageContainer &storage) override |
| Loads the component. More... | |
| StorageContainer | storage () const override |
| Serializes the component. More... | |
Public Member Functions inherited from thrive::Component | |
| virtual | ~Component ()=0 |
| Destructor. | |
| bool | isVolatile () const |
| A volatile component is not serialized during a save. More... | |
| EntityId | owner () const |
| The entity this component belongs to. More... | |
| void | setVolatile (bool isVolatile) |
| Sets the volatile flag. More... | |
| void | setOwner (EntityId owner) |
| Sets the component's owner. More... | |
| virtual ComponentTypeId | typeId () const =0 |
| The component's type id. | |
| virtual std::string | typeName () const =0 |
| The component's type name. | |
Static Public Member Functions | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Static Public Member Functions inherited from thrive::Component | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Public Attributes | |
| Ogre::Real | m_emissionRadius = 0.0 |
| How far away the particles are spawned. | |
| Ogre::Real | m_maxInitialSpeed = 0.0 |
| The maximum initial speed of new particles. | |
| Ogre::Real | m_minInitialSpeed = 0.0 |
| The minimum initial speed of new particles. | |
| Ogre::Degree | m_maxEmissionAngle = Ogre::Degree(360) |
| The maximum angle at which to emit particles. More... | |
| Ogre::Degree | m_minEmissionAngle = Ogre::Degree(0) |
| The minimum angle at which to emit particles. More... | |
| Milliseconds | m_particleLifetime = 1000 |
| How long new particles will stay alive. | |
Friends | |
| class | CompoundEmitterSystem |
Emitter for compound particles.
| void CompoundEmitterComponent::emitCompound | ( | CompoundId | compoundId, |
| double | amount, | ||
| double | angle, | ||
| double | radius | ||
| ) |
Emits an compound according to the set properties.
| compoundId | The compound type to emit |
| amount | How much of the chosen compound to emit |
| emitterPosition | The position of the entity emitting the compound. Compound position is calculated from the relative emissionPosition and the emitterPosition. |
|
overridevirtual |
|
static |
Lua bindings.
Exposes:
|
overridevirtual |
| Ogre::Degree thrive::CompoundEmitterComponent::m_maxEmissionAngle = Ogre::Degree(360) |
The maximum angle at which to emit particles.
Zero degrees is to the left, positive is counter-clockwise.
| Ogre::Degree thrive::CompoundEmitterComponent::m_minEmissionAngle = Ogre::Degree(0) |
The minimum angle at which to emit particles.
Zero degrees is to the left, positive is counter-clockwise.
1.8.10