Solved Straight line vector

Discussion in 'Plugin Development' started by inventorman101, Jan 18, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    inventorman101

    Hi guys :) I have been looking around for awhile and can't seem to find a vector for a straight line. I am trying to get a snowball to go in a straight line in the direction it is launched. Any help would be appreciated, thanks :)
     
  2. Because there is none. You can't just ignore gravity.
     
  3. Offline

    blablubbabc

    You have to store the initial direction vector and alter/set the snowball's velocity each tick abck to that vector.
     
  4. Offline

    Compressions

    inventorman101 You will need to consistently apply the vector to the entity to keep it going in a straight line. What goes up, must come down. :p
     
  5. Offline

    inventorman101

Thread Status:
Not open for further replies.

Share This Page