- Home /
Problem is not reproducible or outdated
Terrain, Player falls through.... but only some parts.
Hey Guys, sorry if this is a dumb question but i have looked everywhere.
So my player seems to walk fine around the terrain until he collides with a mountain or raised part of the world, the payer will just walk straight through any part of the world thats raised.
i have terrain collider on, i have tried using rigidbodys and not using them, turning off scripts and rebuilding the terrain ect. but i cant seem to find a solution and no one else seems to have a similar problem....... that's why i think im missing something really easy.
any thoughts?
more info - how are you moving player ? through transform.position = newPosition, or through rigidbody.$$anonymous$$ovePosition() / rigidbody.AddForce() / characterController.$$anonymous$$ove() ? How do you apply gravity ? Are you spawning player little above terrain (and by player i mean his collider, not mesh)
Sounds to me like you are doing something like player.transform.position.z++; If this is what you do it the wrong way to do character movement. An easy way to do a character is using the standard "First person controller". You get this from the import section ;)
Hey guys, im using the character motor and third person character controller. both standard unity3d scripts
Never seen this happen before, and don't really know why this happens.
Try to create a new unity project, add a fps controller and create a terrain with some heights. All standard. Try to see if you fall through this terrain too. If you do, there must be something really wrong with..i don't really know, your installation of unity? If it however doesn't fall through, compare it to your other project and see whats different(additional scripts etc..).
Sorry for not being able to help, but i have really no idea what this might be...
Follow this Question
Related Questions
Stop going through terrain walls 0 Answers
Character doesn't collide with trees in terrain 4 Answers
My character jumps occationally when against a wall? 2 Answers
I just made my animation loop, but now my character walks through all colliders? 2 Answers
Floating Platform with Terrain/Grass 3 Answers