Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    94
    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:
    805
    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:
    94
    The player uses a CharacterController, not a Rigidbody, so that won't work.
     
  4. VergilUa

    VergilUa

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