Hit event doesnt always fire on mobile but does on pc

Hey,

as this hit event is used for the gameplay of my game project i really need to fix this bug

on computer, the game always fire the hit event ALWAYS (as i could see at least)

on mobile (not the mobile preview) but on real mobile (android here)

the hit event occur but only if the two colliding object hit slowly

the problem appear when the two object collide a bit faster

but… visually they bounce each other, physics seem to work, but the HIT event isnt fire

this only appear on mobile yet, probably it would appear on pc too if the speed of the two objet colliding each other is faster than my test but as this time computer test never failed any hit fire and work as intented, but my game is designed for mobile and i need this to work for mobile :slight_smile:

Thanks

ps: i found a subject about this Hit event doesn't always fire - C++ - Epic Developer Community Forums started on 12 oct 2014 !

here is my video demonstrating you the bug - YouTube

you can see in the first part, the test on computer, the pawn (the white guy) fall and hit the ground hard ! a hit event is fired because its print CAPSULE HIT the pawn die because the normal impulse was big

on the second part of the video, its the mobile video test, same level, same blueprint

the pawn fall, and the first hit he bounce but the hit event didnt occur, the pawn didnt die, and then when he fall back again after the bounce, he hit are fired, print message “capsule hit” are printed but the pawn cant die anymore as the normal impulse is now small

any idea?

Hey

Thank you for bringing this to our attention. I have been investigating this issue further for you and have been unable to successfully reproduce it. In the middle of my project I did notice that destructible meshes are not supported at this time on mobile devices, which is what I had set up to hit. There is a bug in place for this issue: UE-12323.

With that being said, could you please provide me either a sample project, or the steps to reproduce your exact issue in order to verify this?

  • Are you working within 4.9.1?
  • Is the Editor from GitHub or the Epic Games Launcher?
  • What type of device were you working on?

Looking forward to hearing back from you, thanks!

Hey

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

hey i did an answer here but it got deleted or what?

i made a project that you can download to see the bug MEGA

i am workng with 4.9.1 from epic games launcher and my device is a

with the project you can see that the print string “hit” work fine on computer, but when u test on mobile device, the first impact dont print hit, the pawn bounce and then the other impact work fine

the first impact does not fire the hit event on mobile

can someone test this project on mobile and confirm that the hit event dont fire on mobile on the first impact?

Hey

I changed the capsule half height and capsule radius and it fixed the issue. I set mine to capsule half height: 38.0 and capsule radius: 20.0

Please let me know if you have any further questions, thanks!

seem to work now :slight_smile:

it work for the project i send you, but if the pawn fall from heigher then it dont cast fire event again

it work if i increase capsule radius & half heigth again but then the collision is not anymore around the sprite

You’ll need to adjust the size of the collision to be slightly underneath the bottom portion of the sprite so that the hit event can be triggered. You may need to change the size or shape of the collision in order to get this correctly placed for your sprite.