I am working on a school project with a group and since we don’t have a lot of time, we use cubes with box colliders for basically everything. And now when I’ve been playing a bit I noticed that sometimes the box colliders just stop working. The player can walk straight through them but raycasts seem to detect that they are there. The collider component is not set to trigger and is enabled. The worst part is that it is completely random and we can not foresee what block it will target next and we can’t see if a block has been targeted unless we walk into it.
We’ve never seen anything like this before until we updated to Unity 5.3.5. And since we updated to Unity 5.3.5 the day we began with the project we’re not sure if it is a bug or something is wrong with the game.
I am currently taking it up to myself to test it in Unity 5.4 beta 18 to see if the problem is there. Since I need to play the level over and over again it will take some time.
But in the meantime, I would like to ask, has anyone else experienced this? Is this a Unity bug or something wrong with our game?
I just found a cube where the collider stopped working. I am currently in Unity 5.3.5f1 since Unity Beta 5.4b18 was really laggy for me.
What I can see there’s nothing wrong with the cube.
That Object Data Manager just stores data about the object and has some handy functions to get that data. It never actually does something with the colliders.
Why is this happening? We are getting close to our deadline and having this bug in the game would be REALLY bad!
It has never had a rigidbody attached. The only thing that has a rigidbody is my player, that also has a character controller, and that rigidbody is set to kinematic.
Also, when it comes to code, I have no idea what code I should post.
I had similar problem. Just some colliders stop working and your character just fall through the floor or not colliding with wall.
This is not happen if you make your own CharacterController by making RigidBody with CapsuleCollider.
Orginal Unity CharacterControler still is bugged.
i am still learning unity myself, but your last comment makes me wonder. If your player is kinematic and your block has only a collider, you are not using the physics engine to move your objects. It is likely that this is the reason for your issue.
Try a rigidbody (kinematic) on the block
Move the player with add force (i.e. Let the physics engine move the player) - rigidbody (not kinematic)
Thank you! That script is very handy and it allowed me to test a few things.
With the help from krisu’s script, I could test the player a few times on a lot of blocks. I’ve come to the conclusion that even if I add a rigidbody and set it to kinematic it won’t work.
So I’ve come to the conclusion that I need to make a rigidbody player then. What a bummer.
This bug is long time in unity engine (definitely more then 6 months).
I saw this bug in editor and also many times in game. Character controller for some reason does not collide with some scene object(collider). It can be Box, Mesh or even terrain collider.
Problem must be in Character Controller, because when player respawns everything again is fine.
I doubt that we can somehow reproduce this bug, to report (it happens randomly).
Actually i would like to hear “official” answer… is there any progress to find/fix this critical bug?
And if someone saw other topics (about this bug), please leave a link.
When character controller has no collision with some colliders in scene, it’s not a bug?
When players can walk through some objects, or fall through ground, it’s not critical bug?
So, what is your suggestion? Don’t use CC?
Read the physics documentation so you have an understanding of why something doesnt collide. There are many reasons collisions dont occur, none of them bugs.