#include <particle.h>
Collaboration diagram for hoa_video::private_video::Particle:

Public Attributes | |
| float | acceleration_x |
| float | acceleration_y |
| Color | color |
| color | |
| float | combined_velocity_x |
| float | combined_velocity_y |
| Color | current_color_variation |
| ParticleKeyframe * | current_keyframe |
| keep track of current and next keyframes | |
| float | current_rotation_speed_variation |
| float | current_size_variation_x |
| property variations | |
| float | current_size_variation_y |
| float | damping |
| float | lifetime |
| lifetime (when the particle is supposed to die) | |
| Color | next_color_variation |
| ParticleKeyframe * | next_keyframe |
| float | next_rotation_speed_variation |
| float | next_size_variation_x |
| float | next_size_variation_y |
| float | radial_acceleration |
| float | rotation_angle |
| current rotation angle | |
| float | rotation_direction |
| float | rotation_speed |
| rotation speed | |
| float | size_x |
| size | |
| float | size_y |
| float | tangential_acceleration |
| float | time |
| seconds since particle was spawned | |
| float | velocity_x |
| velocity | |
| float | velocity_y |
| float | wave_half_amplitude |
| float | wave_length_coefficient |
| float | wind_velocity_x |
| float | wind_velocity_y |
| float | x |
| position | |
| float | y |
***************************************************************************
Definition at line 76 of file particle.h.
acceleration, i.e. change in velocity per second. The most common use for this is for simulating gravity. If you have multiple constant forces acting on particles, then this vector should be the sum of those forces.
Definition at line 126 of file particle.h.
Definition at line 127 of file particle.h.
store the combined velocity (particle + wind + wave) so we only have to calculate it once
Definition at line 94 of file particle.h.
Definition at line 95 of file particle.h.
Definition at line 161 of file particle.h.
Definition at line 159 of file particle.h.
Definition at line 156 of file particle.h.
damping- the particle's velocity gets multiplied by this value each second. So for example, a damping of .6 means that a particle slows down by 40% each second.
Definition at line 148 of file particle.h.
Definition at line 162 of file particle.h.
Definition at line 166 of file particle.h.
Definition at line 160 of file particle.h.
Definition at line 157 of file particle.h.
Definition at line 158 of file particle.h.
radial acceleration- acceleration towards (negative) or away (positive) from an attractor. Note that the default attractor is the emitter position. The client can set an attractor for the entire effect by calling ParticleEffect::SetAttractor(x,y)
Definition at line 137 of file particle.h.
when a particle is created, it is given a rotation direction: either 1 (clockwise) or -1 (counterclockwise)
Definition at line 152 of file particle.h.
Definition at line 86 of file particle.h.
tangential acceleration- just like normal acceleration, except it is applied in the tangent direction. positive = clockwise.
Definition at line 131 of file particle.h.
Definition at line 90 of file particle.h.
half the amplitude of the wave. We store half the amplitude instead of the whole amplitude because that's what gets multiplied with the sin function
Definition at line 120 of file particle.h.
this is 2 * pi / wavelength. The reason we store this weird number instead of the wavelength is because that's what we will ultimately plug into the sin function
Definition at line 115 of file particle.h.
wind velocity. this gets added to the particle's velocity each frame. note that different particles might also have a slightly different wind velocity, if the system has some wind velocity variation
Definition at line 142 of file particle.h.
Definition at line 143 of file particle.h.
Definition at line 82 of file particle.h.
1.5.1