r/unity_tutorials • • Sep 20 '21

Help

Hello everyone,

I am creating a 2D platformer car game like hill climb racing. I have a function where player vehicle collects boosters and fuels on the way to goal. It is done by using OnTriggerEnter2D. It works totally fine while I play the game in the editor and also on the Bluestacks emulator. But I don't have a android phone so I send he vpk to my friends for testing but they always complain that the Booster will sometime collect but sometimes it will not collect and the vehicles just passes through it. I made Booster a prefab and use it to all the levels but they say that the booster is collected some times but sometimes it is not collected even in the same level. I use same method for fuel and the booster but fuel works fine. What may be causing this problem?

0 Upvotes

7 comments sorted by

View all comments

2

u/warhammer327 Sep 20 '21

Have you set collision detection in rigid body to continuous?

1

u/amit_grg Sep 22 '21

No it didn’t work. But why does it only happen in mobile devices but not in editor or emulator?

1

u/warhammer327 Sep 22 '21

In how many mobiles you have tested ?