42.

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About 42.

  • Rank
    Newbie
  1. Hi, sorry for the late answer. I am indeed using Python, but I must have not been clear enough in my question: I'm trying to get a stream to cast a ray in the direction the vessel is currently moving from the current lower bounding vector. I can set up a stream for the vessel.bounding_box attribute, and I can set up a stream to cast a ray in the right direction from a fixed point, but I can't find a way to access the first element of vessel.bounding_box with a server-side expression so I can use it as an argument to pass to the raycast_distance function inside a stream. If I use vessel.bounding_box[0] in the stream definition, it just uses the value of the lower bounding vector at initialization and doesn't change when the vessel moves. Is this possible and, if so, how would you go about doing it? Hoping this is somewhat comprehensible, thank you in advance.
  2. Hi, I'd like to first thank djungelorm for this great mod, it takes KSP to the next level! I've already programmed a basic rocket landing script, but my code is all over the place and I'd like to make it nicer. To this end, I thought about using streams to get information about the vessel's flight. I, however, run into problems when trying to add a raycasting stream. You see, I use raycasting to determine the location of my potential landing site as opposed to the vessel.surface_altitude attribute because I'm not always landing on perfectly flat terrain. My prototype program casts a ray from the vessel's lower bounding vector in the direction of its velocity vector. I am trying to set up a stream to do this continuously, but run into the following problem: I can't find a way to get an expression for accessing the first element of vessel.bounding_box. Is there a way to do this?