TDME2 1.9.121
|
Circle particle emitter with velocity that lives in plane only. More...
#include <tdme/engine/subsystems/particlesystem/CircleParticleEmitterPlaneVelocity.h>
Public Member Functions | |
CircleParticleEmitterPlaneVelocity (int32_t count, int64_t lifeTime, int64_t lifeTimeRnd, const Vector3 &axis0, const Vector3 &axis1, const Vector3 ¢er, float radius, float mass, float massRnd, float velocity, float velocityRnd, const Color4 &colorStart, const Color4 &colorEnd) | |
Public constructor. More... | |
const Vector3 & | getCenter () const override |
int32_t | getCount () const override |
float | getVelocity () const |
float | getVelocityRnd () const |
const Color4 & | getColorStart () const override |
void | setColorStart (const Color4 &colorStart) override |
Set start color. More... | |
const Color4 & | getColorEnd () const override |
void | setColorEnd (const Color4 &colorEnd) override |
Set end color. More... | |
void | emit (Particle *particle) override |
Emits particles. More... | |
void | fromTransformations (const Transformations &transformations) override |
Update transformation with given transformations. More... | |
![]() | |
virtual const Vector3 & | getCenter () const =0 |
virtual int32_t | getCount () const =0 |
virtual const Color4 & | getColorStart () const =0 |
virtual void | setColorStart (const Color4 &colorStart)=0 |
Set start color. More... | |
virtual const Color4 & | getColorEnd () const =0 |
virtual void | setColorEnd (const Color4 &colorEnd)=0 |
Set end color. More... | |
virtual void | emit (Particle *particle)=0 |
Emits particles. More... | |
virtual void | fromTransformations (const Transformations &transformations)=0 |
Update transformation with given transformations. More... | |
virtual | ~ParticleEmitter () |
Destructor. More... | |
Private Attributes | |
int32_t | count |
int64_t | lifeTime |
int64_t | lifeTimeRnd |
Vector3 | axis0 |
Vector3 | axis1 |
Vector3 | center |
float | radius |
float | mass |
float | massRnd |
float | velocity |
float | velocityRnd |
Color4 | colorStart |
Color4 | colorEnd |
Vector3 | centerTransformed |
float | radiusTransformed |
Vector3 | axis0Transformed |
Vector3 | axis1Transformed |
Circle particle emitter with velocity that lives in plane only.
Definition at line 24 of file CircleParticleEmitterPlaneVelocity.h.
CircleParticleEmitterPlaneVelocity | ( | int32_t | count, |
int64_t | lifeTime, | ||
int64_t | lifeTimeRnd, | ||
const Vector3 & | axis0, | ||
const Vector3 & | axis1, | ||
const Vector3 & | center, | ||
float | radius, | ||
float | mass, | ||
float | massRnd, | ||
float | velocity, | ||
float | velocityRnd, | ||
const Color4 & | colorStart, | ||
const Color4 & | colorEnd | ||
) |
Public constructor.
count | particles to emit in one second |
lifeTime | life time |
lifeTimeRnd | life time rnd |
axis0 | axis 0 |
axis1 | axis 1 |
center | center |
radius | radius |
mass | mass |
massRnd | mass rnd |
velocity | velocity |
velocityRnd | velocity rnd |
colorStart | color start |
colorEnd | color end |
Definition at line 21 of file CircleParticleEmitterPlaneVelocity.cpp.
|
overridevirtual |
Emits particles.
particle | particle |
Implements ParticleEmitter.
Definition at line 42 of file CircleParticleEmitterPlaneVelocity.cpp.
|
overridevirtual |
Update transformation with given transformations.
transformations | transformations |
Implements ParticleEmitter.
Definition at line 72 of file CircleParticleEmitterPlaneVelocity.cpp.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 66 of file CircleParticleEmitterPlaneVelocity.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 90 of file CircleParticleEmitterPlaneVelocity.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 82 of file CircleParticleEmitterPlaneVelocity.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 70 of file CircleParticleEmitterPlaneVelocity.h.
|
inline |
Definition at line 74 of file CircleParticleEmitterPlaneVelocity.h.
|
inline |
Definition at line 78 of file CircleParticleEmitterPlaneVelocity.h.
|
inlineoverridevirtual |
Set end color.
colorEnd | color end |
Implements ParticleEmitter.
Definition at line 94 of file CircleParticleEmitterPlaneVelocity.h.
|
inlineoverridevirtual |
Set start color.
colorStart | color start |
Implements ParticleEmitter.
Definition at line 86 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 31 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 43 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 32 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 44 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 33 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 41 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 40 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 39 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 28 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 29 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 30 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 35 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 36 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 34 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 42 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 37 of file CircleParticleEmitterPlaneVelocity.h.
|
private |
Definition at line 38 of file CircleParticleEmitterPlaneVelocity.h.