Jump to content

What about... planets?


Recommended Posts

Working on it: http://kerbalspaceprogram.com/forum/index.php?topic=8371.0

So far, the issue is copying/creating new CelestialBody objects. There\'s probably an internal factory class that produces these. Reflection might give us a way, though...

I suspect they have added the planets using a tool in the Unity Editor. This means to add one, you\'ll have to add one directly to the scene and then register it appropriately with all the physics stuff and registries, and then keep it in consistant order with other celestials in those registries (as it looks like Vessels use the ID number of the body). If the order gets jumbled, all the crafts orbiting X body will have problems.
Link to comment
Share on other sites

I suspect they have added the planets using a tool in the Unity Editor. This means to add one, you\'ll have to add one directly to the scene and then register it appropriately with all the physics stuff and registries, and then keep it in consistant order with other celestials in those registries (as it looks like Vessels use the ID number of the body). If the order gets jumbled, all the crafts orbiting X body will have problems.

Are you sure? It looks to me like vessels hold a reference to an Orbit, which in turn has a CelestialBody. Vessels have an int for the current stage, but I don\'t see one for the planets.

It seems like adding a CelestialBody to another\'s orbitingBodies list could do the trick. I\'m just having trouble properly cloning/creating a CelestialBody.

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