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"

Attach/detach Actor with SimulatePhysics to skeletal mesh

Hi all,

I'm having trouble with something that seems like it should be should be simple, but just isn't working.

What I'm trying to do is have a weapon laying on the ground that has SimulatePhysics enabled - so it can be kicked, shot at, pushed around, etc., that I can pick up and use. When I use it (handled by a different BP+Interface), it should attach to my player model (with SimulatePhysics disabled) so I can fire it. When I drop it, I want it to go back to the state of being a prop - so I can kick it once again. However, this is not what's going on at all. I just can't get it to attach to my player for some reason, and it definitely has something to do with the fact that it's simulating physics; when I duplicated it and disabled SimulatePhysics, it behaved as expected, bar the fact that it just floats in air instead.

alt text

Above is the portion of the BP that is responsible for the attachment. I've even tried disabling physics directly before it attaches, but it simply won't attach. Any idea what I'm doing wrong here?

Product Version: UE 4.11
Tags:
more ▼

asked May 09 '16 at 12:32 AM in Blueprint Scripting

avatar image

CrimsonIndustry
16 4 6 8

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

2 answers: sort voted first

Well, this was an unexpected but easy fix - too bad it took me most of the day to figure out.

Make sure the StaticMesh is the Root of the Actor you're trying to attach, that fixed it for me.

more ▼

answered May 09 '16 at 02:00 AM

avatar image

CrimsonIndustry
16 4 6 8

avatar image pushmatrix Aug 18 '16 at 06:49 PM

I ran into this issue a couple of times as well. The gotcha is that when you set simulate physics on a component, it detaches that component from its parent. So when you pick it up again, make sure you reattach that component to the root of the actor.

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

Im having the exact same issue today, can you show me how you solved it if you still have the project please?

more ▼

answered Mar 01 '19 at 04:09 AM

avatar image

Spartani
3 1 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