- Home /
Collision not working on Android
Dear Unity Community,
This is another question that came from my previous question, because I found the problem of the first question but it raised a second one. To help others, the link to the previous question is the following: http://answers.unity3d.com/questions/968796/android-touch-not-working.html
The actual problem is that when I install my APK on my Android device, collision is not detected, tough in the Unity editor everything works fine!. Everything works on the android except all collisions, they are totally being ignored. I am using Box & Circle colliders for the gorund, and the player has a Rigidbody and a Box collider.
I am trying to multiple a float while a button is being pushed, but this can only happen when the player is standing on the ground. So after debugging a lot lot, I found out that when I took out the groundCollision bool it worked! So that raised the question about how and why this is happening..
Does anybody know what could be causing this issue? Thanks for the effort!
The tablet I am using is a Lifetab E10316, with Android 4.2.2.
KInd Regards, Marijn
Answer by marijnroukens · May 18, 2015 at 11:41 AM
I don't know Why it isn't working, but Triggers work.
I was able to fix my problem by adding an extra set of triggers above the colliders to do a ground check..
Answer by nvnjls · Jun 12, 2017 at 09:09 AM
I Removed and Re-added all the tags in the game, it worked for me!