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"

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. 

Why is while overlapping detection not working for me?

I'm trying to learn how collision works in UE4, and reading the Doc. is not helping with this problem. I want to make a fighting game, and I need the collision sphere to become active while overlapping the enemy's hit Sphere. This is skipping the "on overlap start" somehow, and I have Constant Collision Detection enabled on the shapes.

I'm using a variable to say if an action should be taken during overlap or not, during the hit frames of an attack but not during the startup or recovery.

If the variable says it's active before touching the enemy's collision sphere, the action works. If the variable is off when it enters, and turns on while still inside, the action does not work, even though, it is still overlapping.

What am I doing wrong?

The test I'm using is with two balls, like the rolling demo. With large hit spheres around them, if I'm rolling forward, the attack should be active. If rolling sideways, the attack is off.

Now if I get close the the enemy while rolling sideways, so they are overlapping collision spheres. Then try to move forward to activate the attack, the collision doesn't work.

Product Version: Not Selected
Tags:
more ▼

asked Jun 07 '14 at 11:38 PM in Blueprint Scripting

avatar image

Gabe687
130 14 15 24

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

1 answer: sort voted first

Never mind, figured it out, I used that same variable to run the Set Collision Enabled function when I need it.

more ▼

answered Jun 08 '14 at 12:59 AM

avatar image

Gabe687
130 14 15 24

(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