Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualMedo3337

Posted 18 January 2013 - 03:15 AM

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 ?


#1Medo3337

Posted 18 January 2013 - 03:14 AM

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 ?


PARTNERS