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 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:
    168
    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:
    899
    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:
    168
    The player uses a CharacterController, not a Rigidbody, so that won't work.
     
  4. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    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.