Problem collider

hello guys, someone can help me?!

You can find in attachment the reference files with the description of my scene and script.

Everything is ok … but the script does not work, because does not recognize the collision of the cube on the floor … the tag is ok … what’s the problem?!


Does the cube have a rigidbody and collider?

yes yes!!!

yes, the cube have a rigid body…

the script is ok?! in attachment the reference of the project.

897533–33503–$TestCollider.zip (230 KB)

Has your cube an attached CharacterController? Otherwise you should use “OnCollisionEnter” instead of “OnControllerColliderHit”

Tank’sssssssssssss!!!

Greatttt!!!