Collisions driving me crazy


Hi everybody, I been dealing for more than a week with different kind of collisions in Unity for my game. But I got the same problem all the time.

This ghost or invisible collisions are making the game impossible to play.

In the first time, I use a mesh collider, but I found this problem, so I supposed that the mesh collision is not accurate enough to work that way (even with convex collision active). So I create boxes and use those as colliders (as you can see in the image attached).
The sphere move up and down as the player, the boxes act like environment and move scrolling sideways right to left. The problem is, all the time my player crash with some invisible object.
I put a guitext to show me what is the collision object and give me feedback (“cube”), but there is no cube in this point.

Some info:
Sphere is trigger and I use OnTriggerEnter, I check the colliders by tag.
The Colliders are linked to an object that move sideways, there is no script attached to any collider, only the right tag.

Any help will be welcome.

I double check to make sure that there is no unrenderer object, mesh colliders or other hidden collision object.

954802--35649--$crashing1.png

check your scene, if you are using things like mesh colliders sometimes it makes the colliders wrongly, if you click all of your objects on the scene you will be able to see their colliders. you need to digg througth the areas where you are having problems

Thank you foxter, I actually checked everything and it didn’t work. But I found something interesting, and probably a bug. I have a trigger box collider on top of my collision object that has no tag (and is trigger) and It has a rigidbody in is kinematic mode. This object is the one who is giving me the ghost collisions. I removed the rigid body to the player and now is working. More than to weeks to figure it out. Sometimes I don’t like this program, damm!

Thank you anyway foxter for your reply, apreciated :slight_smile:

Cheers