Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Character sinking into floor

Discussion in 'Scripting' started by silverleecams, Jul 14, 2022.

  1. silverleecams

    silverleecams

    Joined:
    May 12, 2022
    Posts:
    51
    I feel like I've tried everything - capsule collider, box collider - but my character, which is moving using the new input system, seems to think the ground begins at his head rather than his feet. He collides with the ground and clips into the terrain up to his head. Any ideas on what the problem may be?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,517
    Two ideas:

    - collider does not match the graphics (look in Scene window)

    - you're not moving it properly, perhaps pushing it into the ground

    Either way, is your goal to learn how to make a player controller or do you just want one?

    If you would prefer something more full-featured here is a super-basic starter prototype FPS based on Character Controller (BasicFPCC):

    https://forum.unity.com/threads/a-basic-first-person-character-controller-for-prototyping.1169491/

    That one has run, walk, jump, slide, crouch... it's crazy-nutty!!
     
  3. silverleecams

    silverleecams

    Joined:
    May 12, 2022
    Posts:
    51
    Yeah right now I'm just going through the early stages of how to make a character move and I'm happy with basically any functional result LOL

    Thank you!!
     
  4. silverleecams

    silverleecams

    Joined:
    May 12, 2022
    Posts:
    51
    Works like a charm, I LOVE YOU!!!!!!
     
    Kurt-Dekker likes this.