Hi, i’m using the FPS controllor and i want to achieve this:
I have a platform. If i jump on that, i want it to go down. But if i simply walk on that, i don’t want it.
So i need to detect the changing between the jumpin state and the grounded state, but i don’t know how…i tried but i failed
Use CharacterController.isGrounded. When the character becomes ungrounded (e.g., jumping), consider starting a timer. When the character is grounded again, check how long he was ungrounded. If it’s over a threshold, then he built up enough velocity to push the surface down.