Double hop with FPS controller asset (and other things)

I haven’t been able to find a solution online for this.

Using the FPS controller asset bundled with Unity, I found that double tapping spacebar causes the player to jump and then jump again automatically upon landing.

(BTW, This also happens with a 3rd person character prefab I purchased on the Unity store.)

I can’t see why this bug would be preset in a universal asset such as FPS-Controller, so I feel like it’s my fault! Is there something I can do to fix this?

What are the conditions that are checked when jumping? E.g. Does it check if the player is grounded?

1 Like

Sorry for late reply I was on a long road trip.

I added the code to check if the player was grounded and problem is solved, thanks!