Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Trying to attach sockets to sockets (or SkeletalMesh to sockets)

Hi all,

Running into a bit of an issue; overall what I'm trying to do is assemble a modular gun from 9 different parts. The idea is that the receiver will be attached to the grip, and all other parts are attached to the receiver (other parts are barrel, scope, stock, magazine, and 3 accessories). I thought the best way to do this instead of manually punching in the offsets for where each part would go is to make bones (in the model) where they would snap/attach to and then add Sockets (in UE) to aid in that.

I'm having some weird issue where it for the most part works... but the main part (receiver) is right side up, while everything else is upside-down. I'm not sure why this happens, since I'm fairly sure all of my imported FBXs have the same orientation and I don't have any transformation nodes. Below is the assembled gun before importing it into UE, the same gun during playtime (disfigured), a snippet of my Blueprint, and my FBS export options.

alt text The highlighted is the skeleton for the receiver, and shows the points where all the other components should attach. alt text When gameplay starts and the gun is "assembled" using the below Blueprint, the receiver stays where it is while the other components mirror/rotate on the X axis. It assembles correctly, but upside-down. alt text alt text

Any ideas what I could be doing wrong here?

Product Version: UE 4.9
gestalt.png (47.9 kB)
flipped.jpg (23.2 kB)
attachingbp.png (339.7 kB)
exportoptions.png (26.5 kB)
more ▼

asked Jan 04 '16 at 07:41 PM in Blueprint Scripting

avatar image

16 5 6 8

avatar image CrimsonIndustry Jan 04 '16 at 08:58 PM

Addendum: I re-exported all of the models from Blender, just to make sure the settings were all the same. In addition, I also moved the objects so that the point I want to attach it by (the bone) is at the origin. Now it's disfigured as well as flipped - are the components even attaching to the bones at all? alt text

distorted.jpg (22.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Well, turns out I accidentally switched the components where I was looking for bones; instead of trying to find the sockets in the receiver (which has 7 sockets) I was searching for them in the grip (which has 1 socket), and no error was thrown that no such sockets with the names I was looking for were found, so I didn't even know an issue existed until I listed off the sockets each component was supposed to have and compared it with what was expected. It also seems I got the bone orientations wrong in-editor, and so am manually modifying the socket rotations to be correct. alt text

fixed.jpg (29.7 kB)
more ▼

answered Jan 04 '16 at 10:26 PM

avatar image

16 5 6 8

avatar image CrimsonIndustry Jan 04 '16 at 10:31 PM

I also just realized that this doesn't explain why it (the grip) knows the socket positions despite not actually having the sockets.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question