How I can Spawn a Particle with Raycast hit point?
I use this code , when F key pressed , I want spawn a particle at Hit.Point but does not work!
Code: Select all
IParticleEffect* pEffect = gEnv->pParticleManager->FindEffect("fire.pfx");
if (pEffect)
{
pEffect->Spawn(IParticleEffect::ParticleLoc(hit.pt));
}

Code: Select all
ppe = gEnv->pParticleManager->FindEffect("fire.pfx");
GetEntity()->LoadParticleEmitter(0, ppe);
here is a way for game play programmers?
Please help me
thank you