x

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"

Attaching a actor socket to another actor socket

Im trying to connect two cones via their tips. I have a cone blueprint and added a socket "ConeTip" to the cone blueprint. I'm having a hard time figuring out if it is possible to connect two cones from this blueprint on just their tips. Right now I have it so when they enter a collision sphere at the tips they snap to the socket. This methods works alright but it seems to attach the cone at its center to the socket of the first cone.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 13 '17 at 02:21 PM in Blueprint Scripting

avatar image

PatrickRegal
11 2 8 13

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I had the same requirement. This is what I went for:

alt text

The key thing here was adding the inverse transform of the child's socket to the location, after it was moved to the parent actor's socket. Although If you moved it after attaching it would detach, hence the second attach but keeping relative location this time.

You can skip the rotation, that's just where I'm snapping it to the closest 90 degrees.

There's probably a faster way like getting the first socket location in world space and subtracting the second socket location in local space with one attach. But you might have to do some work with the rotation, so that's why I thought it was best to snap it first then translate it.

more ▼

answered Sep 05 '17 at 05:53 PM

avatar image

maxms
1

(comments are locked)
10|2000 characters needed characters left
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