TDME2 1.9.121
|
Bounding box particle emitter. More...
#include <tdme/engine/subsystems/particlesystem/BoundingBoxParticleEmitter.h>
Public Member Functions | |
BoundingBoxParticleEmitter (int32_t count, int64_t lifeTime, int64_t lifeTimeRnd, float mass, float massRnd, OrientedBoundingBox *obb, const Vector3 &velocity, const Vector3 &velocityRnd, const Color4 &colorStart, const Color4 &colorEnd) | |
Public constructor. More... | |
virtual | ~BoundingBoxParticleEmitter () |
Destructor. More... | |
const Vector3 & | getCenter () const override |
int32_t | getCount () const override |
const Vector3 & | getVelocity () const |
const Vector3 & | 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 |
float | mass |
float | massRnd |
OrientedBoundingBox * | obb { nullptr } |
OrientedBoundingBox * | obbTransformed { nullptr } |
Vector3 | velocity |
Vector3 | velocityRnd |
Color4 | colorStart |
Color4 | colorEnd |
Bounding box particle emitter.
Definition at line 25 of file BoundingBoxParticleEmitter.h.
BoundingBoxParticleEmitter | ( | int32_t | count, |
int64_t | lifeTime, | ||
int64_t | lifeTimeRnd, | ||
float | mass, | ||
float | massRnd, | ||
OrientedBoundingBox * | obb, | ||
const Vector3 & | velocity, | ||
const Vector3 & | velocityRnd, | ||
const Color4 & | colorStart, | ||
const Color4 & | colorEnd | ||
) |
Public constructor.
count | particles to emit in one second |
lifeTime | life time in milli seconds |
lifeTimeRnd | life time rnd in milli seconds |
mass | mass in kg |
massRnd | mass rnd in kg |
obb | oriented bounding box |
velocity | velocity in meter / seconds |
velocityRnd | velocity rnd in meter / seconds |
colorStart | color start |
colorEnd | color end |
Definition at line 23 of file BoundingBoxParticleEmitter.cpp.
|
virtual |
Destructor.
Definition at line 38 of file BoundingBoxParticleEmitter.cpp.
|
overridevirtual |
Emits particles.
particle | particle |
Implements ParticleEmitter.
Definition at line 43 of file BoundingBoxParticleEmitter.cpp.
|
overridevirtual |
Update transformation with given transformations.
transformations | transformations |
Implements ParticleEmitter.
Definition at line 76 of file BoundingBoxParticleEmitter.cpp.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 62 of file BoundingBoxParticleEmitter.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 86 of file BoundingBoxParticleEmitter.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 78 of file BoundingBoxParticleEmitter.h.
|
inlineoverridevirtual |
Implements ParticleEmitter.
Definition at line 66 of file BoundingBoxParticleEmitter.h.
|
inline |
Definition at line 70 of file BoundingBoxParticleEmitter.h.
|
inline |
Definition at line 74 of file BoundingBoxParticleEmitter.h.
|
inlineoverridevirtual |
Set end color.
colorEnd | color end |
Implements ParticleEmitter.
Definition at line 90 of file BoundingBoxParticleEmitter.h.
|
inlineoverridevirtual |
Set start color.
colorStart | color start |
Implements ParticleEmitter.
Definition at line 82 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 39 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 38 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 29 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 30 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 31 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 32 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 33 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 34 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 35 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 36 of file BoundingBoxParticleEmitter.h.
|
private |
Definition at line 37 of file BoundingBoxParticleEmitter.h.