raycast causing wierd bouncing 2d
private void FixedUpdate() { grounded = Physics2D.Raycast(rigid.position, -Vector2.up, .2f, whatIsGround); }
It works as intended for the most part. However, what happens is sometimes when you hit the up key it does not return false and the character moves up just a tad bit before falling back down in a wierd hop type of show.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612132445im_/https://answers.unity.com/themes/thub/images/avi.jpg)