26 lines
474 B
C++
26 lines
474 B
C++
|
|
#include "CKAll.h"
|
|
|
|
#include <time.h>
|
|
|
|
#include "CylindricalEmitter.h"
|
|
|
|
|
|
void
|
|
CylindricalEmitter::InitiateParticle(Particle* p)
|
|
{
|
|
VxVector randpos(RANDNUM,RANDNUM,0.0);
|
|
randpos.Normalize();
|
|
CK3dEntity* entity = (CK3dEntity*)m_Context->GetObject(m_Entity);
|
|
VxVector newdir;
|
|
entity->TransformVector(&newdir,&randpos);
|
|
p->dir = Normalize(newdir);
|
|
randpos.z = RANDNUM;
|
|
entity->Transform(&p->pos,&randpos);
|
|
}
|
|
|
|
void
|
|
CylindricalEmitter::InitiateDirection(Particle* p)
|
|
{
|
|
}
|