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"

How to Attach 2 sockets of one mesh to two separate sockets of another mesh?


So I have a rifle mesh with two sockets (one in the handle and one further down the barrel). I've managed to attach the one in the handle to my character's right hand but i want to know if there's a way to attach the barrel socket to my character's left hand without disrupting the other socket.

The reason for this is because whenever I aim my rifle with Ironsight and look up slightly the left hand moves to the left a little and breaks the immersion of holding a gun. I figured the best way to fix this would be to bind that hand to the barrel socket, that was the barrel would stay in the hand and the handle would stay in the right hand but so far i've found no way to do this. Please help as I'm really baffled with this one.

Many thanks!

Product Version: UE 4.19
more ▼

asked Jan 17 '19 at 01:32 AM in Blueprint Scripting

avatar image

0 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You want to use IK in your animBP to move your left hand to your Barrel Socket each anim update.

more ▼

answered Jan 20 '19 at 04:42 AM

avatar image

66 1 3 6

avatar image Hattimus Jan 20 '19 at 09:30 PM

Thank you! Any idea how I would start this?

avatar image Rymbrant Jan 21 '19 at 07:01 AM

That's a rough one to explain at an real length here. Look up some tutorials on IK in UE4. As a rough overview this happens in the Animation Blueprint. You'll have an IK node that gets updated each anim update the solves how to move the arm to the location of the socket.

(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