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"

Can't get SweepResult from Multiple Collision Components


I'm trying to move an actor witch multiple collisions capsule. The four sides of a car in that case. But I can't get the SweepResult from the BeginOverlap event. Only the Root collision component receives the SweepResult, other get an empty SweepResult.

alt text

It seems that this is a problem that is present for years, does anyone have a convenient workaround to achieve such a task ?.

I'll temporary (maybe not) going to replace the root with a basic shape of the car, and when collision occures, I'll make 4 overlapping test with each side.

Thank you.

Product Version: UE 4.20
car-side.jpg (44.0 kB)
more ▼

asked Apr 03 '19 at 06:49 PM in C++ Programming

avatar image

1 1

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

1 answer: sort voted first

Hey there, try switching to multibody overlap collision and run your sweep again - should detect more than the root component :)

more ▼

answered Apr 03 '19 at 09:10 PM

avatar image

503 2 9 7

avatar image Wombot24 Apr 03 '19 at 10:13 PM

Thank you, I already tried that, all the collisions were already detected, but only the Root can receive the SweepResult.

avatar image duderseb Apr 04 '19 at 02:15 PM

I see, sorry I misunderstood your question. Your workaround sounds feasible. Another one I've done is to use bones along with the Find Closest Bone function to find what/which side of an object was hit while keeping collision components to a minimum. Of course this is very much geometry-dependent and may not be a fit-all solution for your case. Cheers.

avatar image Wombot24 Apr 05 '19 at 07:09 AM

Not a bad idea, I'll keep that for an other time. Thank you.

(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