Jump to content

Solar Sails


Recommended Posts

So I\'m attempting to code up a plugin that allows thrust to be applied along a vector according to the reflection rule. The craft is accelerated according to angle to the sun, distance from the sun, and area of the part.

So, basically, I\'m stumped. The things I need to know are, how do I call up the sun\'s position and distance relative to say, the command pod, the orientation of the command pod in relation to the sun, and how do I make a part thrust?

Link to comment
Share on other sites

I would recommend checking out the Dynasat Satellite Mod for info on detecting where Kerbol (Kerbin\'s Star) is. The map has some way of knowing the distance between bodies, so there must be a hook for it somewhere in the SDK. Hope this helps because I love the idea of solar sails.

More precisely, you should look at the PowerTech code or contact Alchemist.

Dynasat satellites are just using PowerTech plugin. Among developments foreseen in PowerTech, IIRC there is the possibility to orient your spacecraft towards the sun (Kerbol).

Maraz

Link to comment
Share on other sites

Thanks, I\'ve been reading the power tech code and some engine plugin code to get an idea of how it should be done. C# is a little harder to grasp than python of m-code lol.

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...