Jump to content

Attachment Node Location


SiliconPyro

Recommended Posts

I made a very simple nosecone as my first part, but the attachment node is wrong. It's up in the center of the part. I used the part.cfg from a stock nosecone and just modified some description stuff. Is there a value in the part.cfg that controls where that node goes, or is it something in Unity before I export it?

Here's what is happening:

287CC6D3D23097699B6C9D33C959B3876915068C

Link to comment
Share on other sites

In the .cfg file there will be something similar to this:

node_stack_top = 0.0, 0.374, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -0.374, 0.0, 0.0, 1.0, 0.0, 1

the first three numbers are the x,y,z co-ordinates of the node and the next few numbers are the direction it attaches in. The final number is the size of the node (0,1 or 2).

Link to comment
Share on other sites

I can never remember which is which! Your best bet is to change a value, load the game, see where it is, change the file, reload from the dev menu and repeat until its in the right place

Might be a bit faster to add a new game object in unity, and then tweak the location until it is right. The node coords are in the local space of the part (which might not be the same as the model if there is rotation and scaling involved)

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