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"

Overlapping not working

Well my current issue is that I am not shure why my object doesn't trigger an overlap Event. I read the documentation and thought I understood, still it does not work as expected. SoObjects are Physics objects and the do interact with each other on the plane with physics collision. My ship is an actor that is controlled and generates overlap Events. Because I am on a 2d plane I thought it is smarter to do overlap Events and not hit Events with my ship. I have a "smart" enemy, which has the same collision properties as ship1. They both interact with each other- say they check for overlap and execute. But why not my Object,wich has to simulate physics with other physics objects, but should generate overlap Events with my ship and enemies? Thank you in advance. PS: another thing is that when i do a camera shake of the scene, my objects kind of flicker during it while my enemies and my ship don't. Whyyyy? alt text

Product Version: UE 4.18
object.png (473.9 kB)
ship.png (528.0 kB)
more ▼

asked Mar 01 '18 at 06:56 PM in Blueprint Scripting

avatar image

207 7 16 16

avatar image Nebula Games Inc Mar 01 '18 at 08:14 PM

Do you have a screen shot of the blueprint you are using to execute overlap events between ship and object?

avatar image Aleksandro Mar 01 '18 at 09:52 PM

alt text

My Ship Actor does not handle any overlap Events. The Actors themselves do that. My ship only handles it's own Actions.

blueprintobject.png (148.7 kB)
avatar image Nebula Games Inc Mar 01 '18 at 10:55 PM

Hmm, seems like it should at least trigger an overlap to me. I would try adding a collision box around your "asteroid", give it the same collision properties and see if that will trigger an overlap event.

avatar image Nebula Games Inc Mar 02 '18 at 07:34 PM

In that case if you can't even get a simple collision box to fire an event you might have a corrupted blueprint. It happens transient, try duplicating your blueprints and test it with the duplicated versions that's the quickest way, if that doesn't work I copy paste the code and remake the variables in a brand new blueprint. It sucks but honestly if that's the case and the logic males perfect sense and simple things don't work, spending the time to redo your work as oppressed to trouble shoot a corrupt file is going to save you in the long run, and spare you further frustration.

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

2 answers: sort voted first

Guys great News I got it working. Actually it si all the same except that i have realized that my ship has Player pawn as instigator. So thought why not give it a try and set an BINDEVENTON ACTOR OVERLAP at begin Play of the Object actor and set the target to pawn. now ALLEvents that have to do with overlap work as expectet and even the casting to the enemy actor GREEN , which is not pawn, works right. Physics Simulation also works and all of the sudden the flicker effect that i've mentioned at the beginning of my question is gone! Still thanks for your help guys!alt text

works.png (259.0 kB)
more ▼

answered Mar 06 '18 at 11:22 AM

avatar image

207 7 16 16

avatar image Arty-McLabin Mar 07 '18 at 03:11 PM

i'm glad you've solved it :]

i advice to transfer your last comment to answer section so further readers can use that solution.

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

1) Try setting Collision Enabled dropdown to "Both Query and Simulated"
2) Check that the object you try to overlap is not ignoring WorldDynamic (which is the collision type of your screenshot object as you have set it currently)
3) please format your question so they can be more convenient to read. you can use < b r > to force new lines and many more html shits.

more ▼

answered Mar 02 '18 at 01:38 PM

avatar image

925 20 44 64

avatar image Aleksandro Mar 02 '18 at 07:17 PM

I did all you said and stil no luck. I even set both to overlapp la just to see if anything happens and for gods sake nothing is triggered! I mean, why is this happening? Today's not my favourite Unreal Day.

avatar image Arty-McLabin Mar 03 '18 at 02:27 PM

by the screenshot you've supplied, i think it could happen if you set onComponentBeginOverlap event on a different mesh. ensure that you really mean the Asteroid mesh.

each mesh component has it's own overlap event.

tell me if that's the case or should we keep on trying other stuff

also make sure you print string in any case of the overlap event (maybe one of the branches doesn't have a print string so you think it is not triggered, while it is but just the logics are messed up)

avatar image Aleksandro Mar 04 '18 at 06:56 PM

alt text my newest attempt. I am pretty desperate now.

summary.png (453.4 kB)
avatar image Nebula Games Inc Mar 04 '18 at 06:59 PM

Print a string from the "Fail" output pin, see if it triggers the overlap and fails to cast to the ship

avatar image Aleksandro Mar 04 '18 at 07:02 PM

I did that on both fail Ends. Unfortunately nothing. I#m like for 100% shure overlapping the object with my ship and nothing is triggered

avatar image Nebula Games Inc Mar 04 '18 at 07:04 PM

I noticed the bottom of your very first image in this post it says something about casting to "Shot1"....but now we are casting to "Ship1". Are those supposed to be the same name? Is something misnamed in your blueprints?

avatar image Aleksandro Mar 05 '18 at 07:14 PM

shot1 is another actor - it's spawned in ship1 blueprint just a simple working lazershot.

avatar image Nebula Games Inc Mar 04 '18 at 07:06 PM

Also, I don't know if you tried my other suggestion yet, if you haven't I would reconsider adding a separate box collision to your Asteroid and see if you can get overlap events to trigger using that.

avatar image Arty-McLabin Mar 04 '18 at 11:25 PM

can you also show the collision settings of the Ship class? notice that if the ship's type is PhysicsBody too, an overlap shouldn't even happen because you set it to block in Asteroid

avatar image Aleksandro Mar 05 '18 at 07:39 PM

![alt text][1]

Guys I feel bad for taking your time. But still - it won't work. Added box collision with physics properties and hit Events enabled but no Response. One Detail I have to mension is that the "object" exists multiple times so there are many "objects" in the Scene. maybe some eference issue? but that would not explain why tohe nirmal casting method in my smatrt enemy actor works as expected and there are many smart enemies, too. Guys I'm trying very hard here :((( I feel very stupid [1]: /storage/temp/232817-shipsettings.jpg

shipsettings.jpg (124.9 kB)
avatar image Aleksandro Mar 05 '18 at 07:44 PM

So now the fail casting is triggered, BUT- randomly. So I see the object flying and at some Point in time it prtins "failed" from my blueprint. Then I made it that just ONE object is spawned. But when i overlap with that single one nothing is triggered. And with multiple ones,too. Just this random print. This is such a nonsense! I'm stuck at this point in my development cause I've done everything, but the next steps, like the shield, which require to block the physics actor "object" but add a efvent on overlapping with my smart enemies. Thank you for your time, I appreciate it

avatar image Arty-McLabin Mar 05 '18 at 08:11 PM

alt text

screenshot-4.png (40.9 kB)
avatar image Aleksandro Mar 05 '18 at 08:38 PM

I'd wish you were right but this is my total Setting now:alt text

See that the object class has physics enabled. I have the assumption that this causes something, cause my enemy class is controled by vector calculation and nothing is being simulated.

the object on the other Hand has an initial Impulse and torque. objects do collide with objects and interact accordingly, but at that same Moment it does not print any message for overlap Events.

bothclasses.png (518.4 kB)
avatar image Arty-McLabin Mar 05 '18 at 09:47 PM

i would then start by creating a new class with a volume to overlap with everything possible, and test both your existing classes vs this volume. this way you will know which one has the problem.

(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