3D Jumping Collision Bug
Hi, im asking this question because i was not even able to identify what is causing this bug.
Its hard to explain whats going on so here is a video footage to show the bug, and what components my player has. https://streamable.com/cwgpau ( I am moving towards the wall when im jumping, if im not moving but only jumping while touching the wall, this bug doesnt happen)
I am just adding velocity to my character to jump with this piece of code: velocity.y = Mathf.Sqrt(jumpPower -2f gravity); pretty simple, character moves by adding velocity as well.
I use empty object to check if im colliding with ground: isGrounded = Physics.CheckSphere(groundCheck.position, groundDistance, whatIsGround);
And thats it, i can provide more info if needed, but i just cant figure out why that bug is happening, i hope you more experienced devs can help me. Thank you!
Answer by korayaydemir344 · Aug 13, 2020 at 11:22 PM
Finally fixed it, the solution is you should make step offset variable on character controller 0, idk why idk what that option even does
Your answer
Follow this Question
Related Questions
collision glitch 0 Answers
vibrating jumps and collisions 0 Answers
Unity52D - Player Jump Bug 0 Answers
Make moving platform works with 3D first person controller in Unity 2017 1 Answer