Jump to content

Wire offset from model help


Recommended Posts

I am attempting to make a mini battery bank for my power series mods which essentially is a model of a battery charger with 4 AA batteries in it. I can successfully get the model into game but have failed in all my attempts to align the wire origin with the model. Is there some secret on how to properly get this to line up?

 

Its working beautifullly otherwise, but don't want release this with either the wire floating or my model floating to match the wire.

 

A17.2_2019-02-28_19-32-45.jpg.bbef479ce98e1203dd1caf5323f890c8.jpg

Link to comment
Share on other sites

I think there is a specific child object name that you need to use to connect wires to. I just don't know what.

 

That is what I was wondering. Hopefully there is an answer to this conundrum.

 

in the interum is there a way to make the wire invisible through xml?

Link to comment
Share on other sites

Looking at the relay prefab, you may need to have your main prefab at the location of where the wire will be. Then under the prefab, you need a object named position. This will be the position of how it sits on a block. Then under position, you can put your model.

 

This is all just going off that prefab used ingame. Test a few things out and see what effects the position of the wire. From what I see, I think its the position of the prefab to where the wire attaches.

 

Here what I saw in the timer relay. The regular relay shows the same.

relay1.jpg.ac91558966c3d48610a32ac6df0cc5d1.jpg

relay2.jpg.596ce397ff434d0859433644cc0f8f4d.jpg

Link to comment
Share on other sites

Looking at the relay prefab, you may need to have your main prefab at the location of where the wire will be. Then under the prefab, you need a object named position. This will be the position of how it sits on a block. Then under position, you can put your model.

 

This is all just going off that prefab used ingame. Test a few things out and see what effects the position of the wire. From what I see, I think its the position of the prefab to where the wire attaches.

 

Here what I saw in the timer relay. The regular relay shows the same.

[ATTACH=CONFIG]27829[/ATTACH]

[ATTACH=CONFIG]27830[/ATTACH]

 

 

This was really helpful in getting my brain going towards figuring this issue out. Had to step away so hopefully I can get back in there and figure it out in conjunction with Xyth's suggestions.

 

Jayick was saying that having a child node in the unity file labelled Wire is likely where the wire attachment links in game. If I can avoid using the WireOffset it would be nice, but as a last resort I will use it!

 

Thankyou everyone!

Link to comment
Share on other sites

It is not required to have any specially named child object in Unity. Its been a while but I recall using a child named WireOffset but don't recall the wire autoattaching without some xml offseting. The last models I made I didnt use a child object at all so I think it's flexible.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...