- Home /
friction on the wall not working with wall check?
Okay here is my dilemma,
Am working On a 2D platform game, with wall jumping
I have physics2D overlap circle called wall check that works fine as detects when my player touches the wall
I also have a 2D physics material with a Friction of 0.008 attached to the wall. This slows down the player to my desired amount.
The problem I have is that these 2 elements do Not seem to work with each other. With the wall check disabled the player jumps onto the wall and slides down accordingly, but obviously I can't disable wall check because other wise the player won't jump off of the wall.
With the wall check enabled the player can jump away from the wall as I want but doesn't take into account the friction from the wall... He will slide all the Way down at top speed as if there was no friction.
Can some one please explain what I am doing wrong? if u need to look at my code I will upload it but at the moment I'm writing this on a tablet so can't.
Thanks in advance
Does the wallCheck have a physics material? If not, it could override your physics material on the wall when enabled. I would set the physics material of the wall check to the same as teh one on the wall (friction = .008) or whatever works best.
Hi thanks for replying, that is an option i have tried but didnt work... re wrote my code in the end and it must of had something to do with my logic, followed normal logic with Update calling out to fixed update and that seemed to have sorted it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613192820im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Jumping away from the wall 0 Answers
Jumping away from a wall 1 Answer
Wall Jump Scripting Help 2 Answers
My Character is Jumping at different heights with physics for no reason 1 Answer
WallRun with a Jump 2 Answers