Search Unity

Losing collision after jumping

Discussion in 'Physics' started by moxifer, Sep 8, 2016.

  1. moxifer

    moxifer

    Joined:
    Sep 8, 2016
    Posts:
    2
    Hello guys,

    I'm a newbie with Unity right now but I am doing my best to learn stuff everyday.
    I'm trying to create sort of a Slender game and I got the First Person Character script from the Unity default assets. The problem is that whenever I jump, I fall through the terrain.

    EDIT: Actually whenever the MC collides with any other object and when jumping.

    Thanks!
     
    Last edited: Sep 8, 2016
  2. Geckoo

    Geckoo

    Joined:
    Dec 7, 2014
    Posts:
    11
    Maybe your player is too close/near with the terrain mesh collider or maybe you have disabled the player's collider. Try to set it higher so as to test some contact with ground...
    Which character controller are you using?
     
  3. moxifer

    moxifer

    Joined:
    Sep 8, 2016
    Posts:
    2
    I tried changing the position of the player but seems like it's not that. You can find attached 2 images and the controller script. As mentioned, I didn't change anything in script, got the default one. I'm not really good at C#, maybe you can check it out when you'll have some time!

    Thanks a lot for the reply anyhow!
     

    Attached Files: