- Home /
3D Wall jumping with unity character controller
Hello, I Have been trying to get a wall-jumping system to work in unity but no matter what I do it does not work can anyone show me the code which will be able to do this with an explanation or tell me what I have to do for it to work?
I want the player to jump to the other wall whenever I press the jump button
void WallJump(){ if (isWalled) { gravity = -1f; canDoubleJump = false; if (Input.GetButtonDown("Jump") && isWalled) { isWalled = false; direction.y = jumpForce; } } }
This is the code I am currently using which causes the player to be able to jump on the same wall every time they click and I have to manually rotate it towards the other wall to jump towards it
Your answer
Follow this Question
Related Questions
I need HELP ! Wall Jump in 3D Platformer CharacterController 0 Answers
How do I make a jumping and ledge-grabbing system, similar to TLoZ OOT in unity 3d? 0 Answers
Preventing CharacterController sliding down edges on platforms, ground detection. 2 Answers
Every time i test my game,my character flies upward infinitely 1 Answer