Jump to content

How to make code or whatever?


Recommended Posts

Is it not easier just to whip out the 7th grade math book?

√ (Your distance to Kerbol)2 + (Target object's distance to Kerbol)2

Just a little Pythagorean theorem.

Or if you => Kerbal => Object don't make a right angle triangle (which is pretty much *always*):

√ (Your distance to Kerbol)2 + (Target object's distance to Kerbol)2 - 2(Your distance to Kerbol)(Target's distance to Kerbol)*cos(44ddf6e825ef5a1ea521e708af7deb73.png)

Where 44ddf6e825ef5a1ea521e708af7deb73.png is the angle.

Anyway, to answer OP's question - checkout the wiki's page on creating add-ons:

http://wiki.kerbalspaceprogram.com/wiki/Plugins

That being said, if you're going for as simple as possible, a code plugin probably isn't the answer - changing a part (either manually or via module manager) is vastly​ simpler.

Link to comment
Share on other sites

Is it not easier just to whip out the 7th grade math book?

√ (Your distance to Kerbol)2 + (Target object's distance to Kerbol)2

Just a little Pythagorean theorem.

There's no guarantee that the triangle formed is a right triangle, so Pythagoras' Theorem very likely doesn't apply.

Link to comment
Share on other sites

Is it not easier just to whip out the 7th grade math book?

√ (Your distance to Kerbol)2 + (Target object's distance to Kerbol)2

Just a little Pythagorean theorem.

This is miles higher than what I can understand. And I haven't been in school for like 6 years now...
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...