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

Player sticking to the wall AGAIN

Discussion in 'Physics' started by Radeg90, Oct 13, 2017.

  1. Radeg90

    Radeg90

    Joined:
    Feb 28, 2017
    Posts:
    38
    Hi,
    In my game I have a rigidbody player there and a model of wardrobe. If I jump on it and hold keys to go into it, player stucks in the air unless I release these keys.

    I found out that adding zero friction to wardrobe's colliders is handy. I did it and it solved my problem... Unless I put some stones and wardrobe rotated with Z 90 (so it lies on the floor), player was walking on it like on ice.

    So I'm bringing known and common problem back with one detail more - in order to get some informations, how can I not stick to walls but still be able to walk on them? In C#?