A particle.
More...
#include <Particle.h>
A particle.
Particles are emitted by one {
- See also
- ParticleEmitter}.
◆ ParticleType
Types of particles.
Enumerator |
---|
PT_VISUAL | A visual particle.
|
PT_EMITTER | - Todo:
- Document.
|
◆ Particle()
◆ ~Particle()
◆ CopyAttributesTo()
void Particle::CopyAttributesTo |
( |
Particle * |
particle | ) |
|
|
virtual |
Copies the particle attributes to another particle.
- Parameters
-
[out] | particle | The particl to copy the atttributes to. |
◆ GetParentEmitter()
Retrieves the particle emitter.
- Returns
- The emitter.
◆ GetParticleType()
Retrieves the particle type.
- Returns
- The particle type.
◆ InitForEmission()
virtual void Particle::InitForEmission |
( |
| ) |
|
|
inlinevirtual |
Initializes the particle.
It makes it ready for emission.
Reimplemented in ParticleEmitter.
◆ InitForExpiration()
virtual void Particle::InitForExpiration |
( |
| ) |
|
|
inlinevirtual |
Initializes the particle.
It makes it ready for expiration.
- Todo:
- : Document this properly.
Reimplemented in VisualParticle.
◆ IsEmittable()
bool Particle::IsEmittable |
( |
| ) |
const |
|
inline |
Checks if the particle can be emitted.
- Returns
- True if the particle can be emitted, false if it can't.
◆ IsEnabled()
bool Particle::IsEnabled |
( |
| ) |
const |
|
inline |
Checks if the particle is enabled.
- Returns
- True if the particle is enabled, false otherwise.
◆ SetEmittable()
void Particle::SetEmittable |
( |
bool |
emittable | ) |
|
|
inline |
Toggles the particle emitability.
- Parameters
-
[in] | emittable | True to make the particle emittable, false to prevent it to be emitted. |
◆ SetEnabled()
void Particle::SetEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enables or disables the particle.
- Parameters
-
[in] | enabled | True to enable the particle, false to disable it. |
◆ SetParentEmitter()
Sets the particle emitter.
- Parameters
-
[in] | parent_emitter | The emitter for the particle. |
- Todo:
- Check if parent_emitter is an in or out parameter.
◆ Update()
void Particle::Update |
( |
Ogre::Real |
time_elapsed | ) |
|
|
virtual |
Updates the particle.
Updates it position based on the time lived by the particle.
- Parameters
-
[in] | time_elapsed | Time lived by the particle. |
◆ additional_data
Additional data for the particle.
◆ direction
Ogre::Vector3 Particle::direction |
The direction that the particle is or will be emitted to.
◆ emittable_
bool Particle::emittable_ |
|
protected |
Indicates if the particl can be emitted.
◆ enabled_
Indicates if the particle is enabled.
◆ parent_emitter_
◆ particle_type_
◆ position
Ogre::Vector3 Particle::position |
◆ time_to_live
float Particle::time_to_live |
The particle duration.
- Todo:
Seconds? Milliseconds? Frames?
Differenche with total_time_to_live?
◆ total_time_to_live
float Particle::total_time_to_live |
The particle duration.
- Todo:
Seconds? Milliseconds? Frames?
Differenche with time_to_live?
The documentation for this class was generated from the following files: