Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Standard CC can't jump when hugging a wall

Discussion in 'Scripting' started by lucaskargreen, Sep 17, 2020.

  1. lucaskargreen

    lucaskargreen

    Joined:
    Sep 10, 2020
    Posts:
    21
    To jump I'm just adding velocity on the y-axis, but my character gets stuck on straight walls
     
  2. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,606
    Not trying to sound rude, but how do you expect anybody to help you given that little information?
    The approach you explained with half a sentence should work, so the problem is hidden in your specific way of implementing it. To say more, we'd at the very least have to see some code.

    As posting information properly is always important, this is worth a read in any case: http://plbm.com/?p=220
     
  3. Cyber-Dog

    Cyber-Dog

    Joined:
    Sep 12, 2018
    Posts:
    352
    Hey, its because of the default physics material. Try creating a smooth physics material and adding to to both the object jumping and the object it is colliding with.