Character falls through the floor
I was following the tutorial video located at https://www.youtube.com/watch?v=sLAyey2WDyc titled "HowTo: Build a 3rd person shooter in Unity - Part 1". I followed the video and made sure all the buildings, roads, and props had Mesh Colliders. Where his video differed, he had ToonSoldier_Demo but apparently, it was changed as my character in the Models folder was ToonSolider_customizable. In the video, he created an empty GameObject and named it Player and his soldier became a child of the Player which I followed. His rationale is in case he wanted to change characters and models. I followed him on that. Here is where the difference came in. 1) On the Parent, not the soldier, he added character controller. When the lines came up, it was on the soldier. Mine did not do that as it was to the side. I moved it up on the Y scale by 1 like in the video where it was above the ground. In play mode the soldier still fell through the ground.
2) I then removed the Character Controller from the Player and put it on the soldier which failed.
3) I removed the Parent Game object Player and renamed the Soldier Player and in Play mode he still fell through the ground. Again, the ground, buildings and props have mesh colliders and the soldier is above the ground. I could really use help and some explanations. In several attempts I included Rigidbody and Collider set to Kinematic and unchecked gravity and did not work. Thank you in advance.
Answer by J_Ripley · Nov 27, 2021 at 07:47 PM
The following are screen prints that should help
Your answer
Follow this Question
Related Questions
My player fall through terrain hills when i'm sprinting 1 Answer
Having problems with character falling through buildings. 0 Answers
Why does my player object falling slowly through the floor? 0 Answers
Falling through floor - but this is weird 0 Answers
Assiging character controllers capsule collider to cloth? 2 Answers