This was not happening for the entirety of my time spent on this project until I added and then removed a failed Player Controller Animation script. My character now fails halfway through the floor so only his head and chest stick out. He still walks around and reacts to the terrain as if he’s walking over it but his body is halfway under. I have tried everything that other people have said, from adding colliders and rigidbodies to making sure is Trigger is off as well as removing elements and re-adding them. My character is well above the terrain in the scene window and my player box collider is not intersecting with the terrain at all. Your help and suggestions would be greatly appreciated.
first off make sure that the animation you added is not moving your player’s hierarchy down below the floor… simple to check…
Second… when you animate something with Animator… you cannot also change the same thing via code without having problems… the animator will usually overwrite whatever you did with code. e.g. rotations, transform, color etc…
sooo… if you have control / movement scripts running on the root or some sub object in your charater’s hierarchy… open you animator and child animations and inspect them to see what they are animating.
I suggest you completely separate whats going on with the parent (scripts, character controller, collider, etc… all on the root, and then below that… make an animation parent object, with the Animator on it, and below that the character skeleton and animated parts…
is the character 2d or 3d? the terrain is made for 3d colliders. you may try using a cube, making it wider and then put a 2d collider instead of a 3d one, or just use sprites.
Hello!
I’m not sure if this will work but you should try to change the Player’s y coordinate to a higher value and (if the playes has a rigidbody) change the “Collision detection” to “Continuous”. And if it doesn’t work, change it to “Continuous Dynamic”.
I hope this can helps you