Using this code, it is trying to go a few degrees away from vertical towards the target, but it doesn't actually point in the right heading until you get at least 5 degrees from vertical. This makes doing a tiny gravity turn impossible by using lock heading before launch.

Bug Active Found in 1.0.4.0
Sandbox View

4 Comments

  • Log in to leave a comment
  • Profile image

    Could lock heading to vector maybe have an implicit lock heading to vector's heading (flattened and converted to compass) when pitch > 85?
    Related, thinking about how valuable a vector = heading2vector(heading, pitch) functionality might be. I know I've wanted it more than once. Might put in suggestions but seems the platter is quite full

    4 months ago
  • Profile image

    @Krydax Sure, it's a good point and the behavior is not obvious at all. I'll keep the bug report alive until we can figure out a better way to deal with it.

    1.8 years ago
  • Profile image
    0 Krydax

    @AndrewGarrison so is it a bug that could be/will be fixed? or is this some issue that will always be around? If so, it could be good to have that limitation told to the player somehow, as it's very confusing behavior since it's not actually locking the heading onto the vector you feed it.

    1.8 years ago
  • Profile image

    That's correct, it's a limitation when locking the heading on a vector. The set craft heading instruction can be used to set the heading at any pitch angle and any subsequent calls to lock heading on vector should maintain that heading when the pitch angle is > 85 degrees.

    +1 1.8 years ago

No Upvotes

Log in in to upvote this post.