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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

"Simulating Physics" affects "Attach to Parent" even after turned off!

So I have an actor class which I am using as a "pick up" item in my game.

1) It's initial state is with "simulating physics" turned off.

2) Upon a character calling a pickup function I then attach this actor to the character using "Attach Actor to Component" (I attach it to a scene component in the character class)

3) When the character drops the item I detach it by using "detach from parent". At this point I also set "Simulates Physics" to enabled, to cause the item to bounce around when dropped

4) When attempting to pick up the item again (step 2) , it attaches, I can see this in the scene hierarchy that the item has been parented under the character, but this time it does not update the Item actor's position to snap and follow it's parent.

I've tried changing the collision channels, the object collision type, etc, to no avail. I believe it is a bug with Simulating Physics

Unless I'm missing something?

alt text

alt text

Product Version: UE 4.9
1.png (274.2 kB)
2.png (224.4 kB)
more ▼

asked Sep 21 '15 at 10:15 PM in Using UE4

avatar image

118 7 11 16

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

1 answer: sort voted first

Any non-root components that have been physically simulated will have to also be "reattached". In this case, since the actor is already being attached to something, attach these no-longer-physical components back to the root component of the actor they are part of. In the following picture notice the AttachTo node on the far right. alt text In this scene i was testing with a Pawn actor that has a static mesh component that i could turn on and off its physics. I programmed a couple of keys to toggle attachment between two other objects (cube,cone) in the scene. The other sphere actor in the scene was added for a basis of comparison. it behaves as you expect without the additional attachTo code. Because the sphere from a sphere actor is a root component already it behaves as you expect without the additional attachTo node.

Just in case I have not reproduced what you have, let me know how this goes in case there are any additional issues.

more ▼

answered Sep 22 '15 at 08:21 PM

avatar image polymatheddy Sep 22 '15 at 08:42 PM

yes sir! I believe that did do it :) Thank you so much

avatar image NickNasti Dec 16 '15 at 01:37 AM

Thanks. This solved a serious headache!

avatar image nkey Jul 23 '17 at 09:57 AM

Thanks, helps a lot!

(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