Jump to content

Programmer Plugin GetStrain


Recommended Posts

i learning KSP SDK. KSP SDK have very low documentation. this.vessel.<?????> ???????????? how get strain vessel ? no change speed G = 0 from vessel, change speed is high then strain is high. or example how get surface speed ?

Link to comment
Share on other sites

The first place to look for objects is the Object Browser in your IDE. If you goto that and find the Vessel class, you can see all the properties. In this case Vessel.orb_velocity or Vessel.srf_velocity are probably what you want.

That needs testing to determine if either of those is the velocity you are looking for.

The other place to look is at the source code of another mod. Find a likely mod that does something similar and see where it ties into the KSP API to get the data it needs.

Beyond that, it is trial and error, there is very little documentation to help us out unfortunately.

Hope that helps,

D.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...