- Home /
unity 5 first person controller jump problem
i have a problem with the unity new fps controller with the jump , each time i jump and land it automaticly jump again and even sometimes it have unresponsive i don´t know what to do.
Can confirm. Absence of acceleration feels jittery, also.
Answer by Laedas · Jul 25, 2015 at 08:20 PM
Adding a check for m_CharacterController.isGrounded
in the first if
statement seems to fix the continuous jumping issue for me.
Original:
if (!m_Jump)
{
m_Jump = CrossPlatformInputManager.GetButtonDown("Jump");
}
Fixed:
if (!m_Jump && m_CharacterController.isGrounded)
{
m_Jump = CrossPlatformInputManager.GetButtonDown("Jump");
}
Your answer
Follow this Question
Related Questions
FPS 3D camera view problem 0 Answers
Need Help Getting My Player To Jump. 1 Answer
How to disable FPS control but allow mouse to move and interact with GUI 1 Answer
Best way to implement jump method for character controller 1 Answer
how to make give a cube the capability to make an object jump when it comes on it ?? 1 Answer