Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Character walks over objects she's not suppose to

Discussion in 'Physics' started by Falcoshin, Oct 4, 2018.

  1. Falcoshin

    Falcoshin

    Joined:
    May 31, 2017
    Posts:
    109
    I have a small beach ball in the scene for the player to kick around and, while she applies force to it just fine, it causes her to ramp up the ball. I understand I could apply gravity to her to get her back down, but the problem is she shouldn't be climbing up the ball AT ALL. What's causing this and how can I fix this?
     
  2. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    891
    Have you tried increasing the mass of the player? And, maybe lowering the mass of the ball.
     
  3. Falcoshin

    Falcoshin

    Joined:
    May 31, 2017
    Posts:
    109
    The player uses a CharacterController, not a Rigidbody, so that won't work.
     
  4. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    1,636
    Try disabling the collision between the player and the ball via Physics.IgnoreCollision, or collision matrix.
    Just make sure you're applying enough force, so that the ball never gets inside the player.