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"

Begin/end overlap getting triggered on the same frame

I am making a VR game that uses head tracking to select things in the menus. I have a collider attached to the HMD camera and it triggers overlap events when it hits menu items. So far, simple.

However, it seems to trigger begin overlap and end overlap during the same frame. If I look at the menu item and print something on begin and end overlaps, the log gets spammed with begin, end, begin, end, and so on even though the collider hasn't moved from the menu item.

Could this have something to do with temporal reprojection?

I thought about using a ray cast but if it's using the same transform as the collider, I will most likely have the same issue.

Any ideas?



Product Version: UE 4.11
more ▼

asked May 11 '16 at 04:51 AM in VR

avatar image

30 2 4 10

avatar image DTM Jun 30 '16 at 09:37 PM

Bump.... I'm Having the exact same problem... Anyone??....

avatar image VertigeV Jun 30 '16 at 09:41 PM

I still haven't been able to fix it :/

avatar image DTM Jul 01 '16 at 04:04 PM

Its a head-scratcher, only the HMD does that, otherwise my system works just fine.

avatar image NFTS.Games Jul 07 '16 at 04:28 PM

Same problem here. Using VR. I'm getting begin, end, begin, end sequence when overlap starts and 2 times end overlap when it ends...

avatar image AndreaCarver Jul 13 '16 at 06:42 PM

Exact same situation here. Using UE 4.12.4. Please post if solution is found. Thanks!

avatar image Blaise Imiolczyk Aug 03 '16 at 03:18 PM

The issue is the same with motion controllers. On single frame it generates begin, end, begin, end and one more end event...

avatar image ReddollGames Aug 19 '16 at 04:30 PM

Same problem also for me!

I try to make a Pawn that contains only one Chaperone, one Camera and a box collision (OverlapDynamic and generate overlap events) inside the camera.

alt text

I've created another blueprint with a cube that intercepts overlap event and i've placed it near the player start:

alt text

When i launch the project i see continuosly the name of cube.

Doing more deep experiment seems that both camera and motion controllers return to ZERO position all frames: this issue isn't confirmed by position (i've tried to print it) but by attaching the cube to a hand i see that the overlap event is called also when i move that near ZERO position.

i hope this can help to solve our problem.....

cattura.jpg (121.0 kB)
cattura2.jpg (160.4 kB)
avatar image AlexDiru Sep 11 '16 at 05:30 PM

I'm getting the same problem. Not working in VR, but it works fine when I overlap against a UE primitive cube, but when I use a custom mesh from Maya it triggers simultaneously

avatar image Taucesauce Sep 20 '16 at 11:41 PM

Currently having the same issue, tried setting flags to stop the event from firing if there's currently an interaction happening but obviously the events complete and set the flags at the same rate as the events firing normally ;)

avatar image heranbago Oct 10 '16 at 10:41 AM

I'm having this issue too. Trying to apply the hitbox in other ways, as in not on the camera, makes the event work fine on teleport, but walking over to trigger it causes the begin and end overlap events to fire simultaneously. My idea for a workaround was to have a timer check if the two events happen within a very short time from eachother, and if not then do what was intended normally. I have not been able to implement such a workaround though.

avatar image NFTS.Games Oct 10 '16 at 12:34 PM

I did it using boolean variables but it was really hard with timing. The project become framerate dependant in terms of functionality. This shouldn't be a problem in final project where you want stable framerate but was messy for testing. I put static meshes as colliders everywhere as walkaround. Do you have this problem with static or skeletal meshes?

avatar image AlexDiru Oct 10 '16 at 01:06 PM

I found by simplifying the collision mesh and having multiple smaller collision meshes rather than one large collision mesh fixed it. Though I'd like to know why the overlap events don't work with larger more complex collision meshes

avatar image heranbago Oct 10 '16 at 01:17 PM

I just have one simple capsule trigger under the camera and a sphere trigger in the map. My solution was that rather than standing on fire hurting the player, it just vibrates the controllers and flickers the screen once. It makes it annoying, which is enough of a discouragement for my VR puzzle game. I hope the Unreal team fixes this one in the future though!

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

1 answer: sort voted first

A temporary solution is to detach your capsule from the camera. Make a timer by event and have it set the capsule-location back to the camera, every every 0.05 sec.. works fine.

more ▼

answered Nov 06 '16 at 04:49 AM

avatar image

36 1 2 5

avatar image heranbago Nov 07 '16 at 12:03 AM

That sounds like a good solution. Can you show a screenshot of your working blueprint, or quote the C code you have working?

avatar image BeeHiveBob Nov 07 '16 at 07:44 PM

just like this, nothing to it really. the timer can be tweaked but if you use stuff like global time dilation you need it fast, or make it adjust to time dilation. alt text

Another thing you might run into, since the camera is always vibrating from head movement, you can think of it more like a tick that can hammer begin/end overlaps when standing at the edge. I handle that spam this way alt text alt text

(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