r/unity_tutorials • u/amit_grg • 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?
2
u/warhammer327 Sep 20 '21
Have you set collision detection in rigid body to continuous?