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"

Where do I apply impulse to move whole Actor not just component

Hello , I have a actor blueprint with some static mesh components. I want to apply some force to actor so it moves taking all the components together with it.

Imagine it like a ship in space with multiple compartments as static mesh components, Where and how do I apply the force/impulse so it moves and takes all of the compartments with it?

If I apply force only to static mesh components their velocity will be based on their mass and hence they'll collide with each other and go to random directions.

Thank you

Product Version: Not Selected
Tags:
more ▼

asked Mar 04 '15 at 06:13 PM in Using UE4

avatar image

Commander Shepard
727 55 79 211

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

1 answer: sort voted first

Apply it to the root component

more ▼

answered Mar 05 '15 at 06:38 AM

avatar image

DG Gage
1.6k 62 31 128

avatar image Commander Shepard Mar 08 '15 at 10:58 AM

What if the root component is a Scene component?

avatar image DG Gage Mar 09 '15 at 10:12 PM

I'd recommend replacing that with something like a Box or Capsule component, so you can apply physics and/or collision effects to your entire actor

avatar image erdalt Mar 17 '17 at 04:28 PM
 RootComponent = CreateDefaultSubobject(TEXT("RootComponent"));
 Cast(RootComponent)->AddForce(force);
 
(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