Solved Calculating Vectors

Discussion in 'Plugin Development' started by CMG, Jul 2, 2014.

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

    CMG

    Search for what? What is the thread about?
     
  2. Offline

    LucasEmanuel

    Use your imagination, search for anti gravity or something.
     
  3. Offline

    EcMiner

    I'm happy to inform you that if you wanna code the hedgehog kit you don't need to calculate vectors, if you set the pitch and yaw for an arrow it will automatically go into that direction. What you should do is iterate through all the pitch and yaws that you want, set the arrow's pitch and yaw to that. For the "slow motion" effect it's very simple, when I made the kit it was meant to go really fast, and as you can see it does in the beginning, but after a little while it starts slowing down. As I said this was not meant to happen and I thought the arrows would go really fast but when we saw the effect it gave we decided to keep this effect. The only thing you have to do is save the velocity of the arrow right after you set the pitch and yaw, then you just schedule a repeating task that keeps setting the arrow's velocity to the one you saved, and ofcourse, you need to cancel it after a little while. Hope this helped :)
     
  4. Offline

    CMG

    Yes it did, thanks Daan.
     
Thread Status:
Not open for further replies.

Share This Page