Jump to content

Rotating parts?


Recommended Posts

Hi everyone, I was just playing around with a so-called UFO (those ships with lots of winglets that build speed when rotating), and was wondering if it would be possible to code a part so that it (or part of it, for attachment purposes) rotates about its own axis (the same way bearings work).

If so, would it be possible to attach others parts on the rotating part?

The purpose of my question is purely informative, as I have no coding ability whatsoever, but if someone wants to give it a try, I\'d really like to know about it!

Link to comment
Share on other sites

You can use the landing leg part to simulate rotation on the press of a key if you put the hinge in the center. But it will stop moving once it rotated by the degrees specified in the config file, pressing the key again will rotate it back to it\'s original position. That\'s as far as you\'ll go without coding something yourself. The whole movement code is still a big mystery to me, can\'t make heads or tails out of it yet.

Link to comment
Share on other sites

I didn\'t even think about using something similar to the landing legs, but I was indeed speaking about a continuous rotation, and not simply a set angle.

If we can however set an angular speed rather than an angle, it might just work.

As I said, though, I can\'t check that by myself, so I\'ll just wait for someone to try this :)

Link to comment
Share on other sites

Also the default behavior doesn\'t let you attach anything to the secondary collider node that moves with the leg, only the main node which is in the 'anchor' or hinge, which you use to attach the leg to something else.

It will take a custom part for sure, and I am not sure whether someone can code a function that allows the VAB to recognize custom collider nodes to accept part connctions.

Link to comment
Share on other sites

Also the default behavior doesn\'t let you attach anything to the secondary collider node that moves with the leg, only the main node which is in the 'anchor' or hinge, which you use to attach the leg to something else.

It will take a custom part for sure, and I am not sure whether someone can code a function that allows the VAB to recognize custom collider nodes to accept part connctions.

Is it possible to change the location/orientation of an attachment node with coding?

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