- Home /
Collider object passing through each other in android phone, while it is not passing in the unity game window
I have an infinite runner type 3d game in which the player is stationary and the background moves to the player. I have spawned coins at random intervals, and the player is able to collect it and as soon as the player collects the coin, it is moved from the scene and it is working fine in the unity game window. In the unity game window the coins are automatically moved from the scene when it is collected and it is not going through inside the player, but when I build the game for android and played it in a real android device, I find that some times the coins are passing through inside the player, as soon as the coin collides the player. Instead of removing the coin,the coin passes inside of the player. This happens only in mobile, and is not occurring this problem in the unity game window. How can this problem be rectified? I have created a box collider for the coin and the player is a rigid body and I have used the OnTriggerEnter function to detect the collision between the coin and the player. In the box collider, I have checked the Is trigger column. Can some one please help me out. Is this a problem with the real device? My device is a Redmi 1S.
Your answer
Follow this Question
Related Questions
Rigidbody gameobject falls through plane 1 Answer
Android Joystick Control without CharacterController 0 Answers
Problem with MeshColliders and Rigidbodies 1 Answer
Android increase force of object by position of touch 0 Answers
How to affect multiple rigidbodies with one box collider trigger? 1 Answer