Jump to content

What would it take for non-linear part trees?


Recommended Posts

So, it's a commonly known fact that Unity has a fairly picky set of part tree rules:

There must be a single root part, from which everything in the part tree stems from.

Node parts have a certain node(s) they must attach on for it to place properly.

Each part can only have one parent part.

So my question is, what would it take to break these rules?

Unity also cannot render curved, spherical terrain meshes, yet what does KSP have seventeen of? curved terrain meshes. Not being deterred by Unity's ineptitude, There came PQS, which, if I'm understanding things correctly (I remember HarvesteR talking about this in a youtube video somewhere), works around that problem.

Now, I'm no programmer and I'm also not versed in the source code of the game. So, what would it take to write a workaround for Unity's part tree system to create an all around better one?

Also, what defines a better part tree? Obviously double-back support would be one thing. What else would you like to see and how could it be done?

Link to comment
Share on other sites

I've no idea exactly how it could be done, but I do know that such a thing is not really an uncommon problem. As such, I'm sure there're libraries of code that Squad could find and make use of that would work around this problem for them -- if in doubt, look at what someone else did to see how you migt do it. I know that kind of mimicry happens an awful lot in programming xD

Link to comment
Share on other sites

I've no idea exactly how it could be done, but I do know that such a thing is not really an uncommon problem. As such, I'm sure there're libraries of code that Squad could find and make use of that would work around this problem for them -- if in doubt, look at what someone else did to see how you migt do it. I know that kind of mimicry happens an awful lot in programming xD

Comes down to convergent design. By the limitations of the coding language, there can only be so many efficient ways to do something. There are considerably more ways to do it if efficient code is not your goal, but when is that the case? :P

And why has this not gotten more posts? It seems like the part tree is something most people would like improved.

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