I was testing the get distance to a place. I had the vector (0.00284, -0.00934, 0) the landing zone 1 and vector nav location. It was getting enormous numbers so I went and got the individual x, y, and z distances. The y was exactly where it was supposed to be but the x and z were way off. Should I not use vectors?

Tags
Vizzy

5 Comments

  • Log in to leave a comment
  • Profile image

    @sflanker that worked well. Thank you!

    4.0 years ago
  • Profile image

    @sflanker okay. That makes sense.

    4.0 years ago
  • Profile image
    Mod sflanker

    Mixing PCI vectors and Lat Lon? The vector you mentioned is definitely Lat Lon so if you want to compare it with nav |Position| you will need to convert that to Lat Lon as well.

    4.0 years ago
  • Profile image

    On start
    while true
    Set variable distanceX to vector (0.00234, -0.00934, 0) distance between vector nav position
    while

    4.0 years ago
  • Profile image

    @sflanker you are probably the best person for this. Do you know what I did wrong?

    4.0 years ago

No Upvotes

Log in in to upvote this post.