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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

[Bug] AttachToActor Weld simulated bodies at runtime

Hi,

It seems that the "Weld Simulated Bodies" option on the AttachToActor function (same with AttachActorToActor) is not working at runtime.

Well. In fact, it seems that in C++, it would come from the "AttachRootComponentToActor" function.

In BP, if calling AttachActorToActor in the BeginPlay sequence, it will work properly and the "Weld Simulated Bodies" option will work as intended. On the other hand, it you put it anywhere else, like on a key event, it will attach it but the bodies will not weld and the target will not have collisions (when the parent will still have).

Cheers,

Erio

Product Version: UE 4.9
Tags:
more ▼

asked Oct 09 '15 at 10:34 PM in Bug Reports

avatar image

Hayaweh
182 12 20 76

avatar image TJ V ♦♦ STAFF Oct 13 '15 at 05:15 PM

Hi Erio,

I attempted to reproduce this in-house but I'm not getting the same results. I maybe setting it up incorrectly on my end. Would you be able to create a small test project that has the issue and upload it here?

avatar image Hayaweh Oct 13 '15 at 05:51 PM

Hi TJ Ballard,

Yes. I will set you up a quick test-project (I have one I used to test that. I just need to make it lighter for upload). It should be ready in about an hour at most.

avatar image Hayaweh Oct 13 '15 at 06:13 PM

Here is attached the test project.

Test Project

The attachement code is contained in the level blueprint. All attachements are done during the BeginPlay event.

Then the last one (the blocs on the left is you don't move the camera) are attached on the first event tick event.

To test and have a reproduction of the behavior, just press simulate. All the blocs will fall to the ground. Then select the blocs on the second column starting from the left whilst un-possessed and try to rotate them around the Y axis (green one).

You will notice that all the blocs have collisions on the right block. You will also notice that the two blocs (which are one actor) on the left block have no collision.

Those last 2 are the ones being attached on runtime. And they are the one not having collision.

I deducted that the Weld Simulated bodies worked well in the begin play event or any construction script but would not work at runtime properly, leading to lose of collision on attached components.

I hope that this will help (and if an easy fix exists, please let me now as this would be of utmost importance for our project) and that this is not an intended behavior.

Cheers,

Erio

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

1 answer: sort voted first

I was able to reproduce this with the project you provided. I wasn't able to find a workaround so I've created JIRA UE-22122 and our developers will be investigating the issue further. We will post here with questions and/or updates as we have them.

Cheers,

TJ

more ▼

answered Oct 14 '15 at 04:38 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

avatar image Hayaweh Oct 14 '15 at 05:09 PM

Alright!

If you have any question/updates do not hesitate. :)

Cheers, Erio

avatar image HuntaKiller Oct 28 '15 at 07:56 PM

I too have this in my constructor and was wondering why the bodies are not being welded. It does work if called at Begin Play however

avatar image MrTheRich Feb 25 '19 at 06:14 PM

It seems that this bug is still persistent. I really need this to work for VR Is there any update on what is going on? it is dring me insane.

(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