I want to make smoke particles move towards a certain 3D point.
D3DXVECTOR3 startPosition; D3DXVECTOR3 endPosition; D3DXVECTOR3 m_velocity;
The particles should start at startPosition and move towards endPosition
I'm updating the velocity for each particle every frame by doing something like:
position += m_velocity * timeElapsed;
How do I set m_velocity to make the particles move towards endPosition ?