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. 

Having more than one collision component doesn't work

hey guys, I'm trying to replicate projectile behaviour from Overwatch and I'm having difficulty getting it to work.

What I'm after is quite simple. I have a projectile with two collision components.

The first large collision component (called Primary Collision in the screenshot) is being used to detect when the projectile has hit another player (being able to control the size of this allows me to dial in how easy it is to hit the projectile).

I'd like the second small collision (called Secondary Collision in the screenshot) to be used for the physics of bouncing off walls and rolling on the floor.

My approach was to have the two collisions have different collision responses (primary blocking pawn and ignoring everything else, secondary blocking everything) but currently any collision component other than the root component is completely ignored. This means that if the primary is set to ignore the floor, despite having another component which should block the floor, the projectile will simply fall through the floor.

Any ideas on how to solve this?

alt text

Product Version: UE 4.12
collisions.png (372.8 kB)
more ▼

asked Jul 26 '16 at 09:31 AM in Blueprint Scripting

avatar image

11 3 6

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

1 answer: sort voted first

Hi there,

the issue is the physics engine that uses the root collider for hit collision by default. The root component gets moved so the root needs to collide. Every other component (incl colliders) else is just attached.

So you only need to exchange the colliders to have the Secondary Collider as root component. Then you should be good to go :)

I have a similar setup within my project with 4 colliders. If you have your custom movement you need to consider your root collision too. Because you want to avoid moving through walls by checking the sweep option that handles blocking collision for you.

You will have only one hit collider anyway. Every overlapping component is used by yourself, so you can nest them whereever you want to.

Hope that helps :) Marooney

more ▼

answered Jul 27 '16 at 11:46 PM

avatar image

891 36 8 37

(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