Original Post
I've never done a particle attractor before and would really like to implement one in my particle engine. I'm not really sure if I'm doing it right. Here's the main affect function of my basic attractor class: void nParticleAttractor::Affect(nIParticle* particle) { nVector2 dir = m_Position - particle->GetPosition(); nVector2 force = dir * (1.0f/(dir.Length()/2.0f)) * m_Power; particle->AddForce(force); } Is this corrent? Could some one give me an overview of how to create forcefields/attractors please. Here is my app Download Just uncomment the attractor actor in the Scene.xml file