Search Unity

Player gets stuck in air once attacked

Discussion in 'Editor & General Support' started by oem, Apr 27, 2010.

  1. oem

    oem

    Joined:
    Jan 8, 2010
    Posts:
    12
    I'm having a problem with my player when it gets attacked by my enemies. When it gets hit my player gets smacked up into the air then seems to be stuck floating above ground level by a few feet. I am also still stuck after respawning. Before I engage in combat my player stands and moves perfectly on the ground.

    Here are some screen shots to demonstrate:

    1). Approaching enemy
    http://i40.tinypic.com/xp0bhu.jpg

    2). After being hit by enemy (stuck in air)
    http://i39.tinypic.com/2ij6u1k.jpg

    3). Still stuck in air after respawning
    http://i44.tinypic.com/euqcrm.jpg

    Does anyone have any ideas as to what the problem may be? I've tried moving the players and enemies controllers higher and lower, but no luck.

    Thanks.
     
  2. oem

    oem

    Joined:
    Jan 8, 2010
    Posts:
    12
    I could really do with any suggestions, need to have it working by tomorrow.

    :cry:
     
  3. oem

    oem

    Joined:
    Jan 8, 2010
    Posts:
    12
    I've noticed that when I un-play the game inside Unity I notice that the enemies capsule seems to enlarge and morph quickly, could there be some kind of real time error causing this?
     
  4. Ramen Sama

    Ramen Sama

    Joined:
    Mar 28, 2009
    Posts:
    561
    eh, it's hard to say what's going on. When the player is stuck in the air.. are they stuck? as in no more movment, or just elevated. if so, you're probably somehow animating your capsule collider. maybe you've parented it to some bone or something else you shouldn't have.

    it's easy to see what's going on.
    Play it in the editor, when the character is stuck pause the game and look in your editor and find your character controller. you should see it outlined in relation to your character object.