Question by
WinteryJungle9 · Sep 06, 2019 at 11:38 AM ·
character controllerfirst-person-controllerfirst person controllerstandard assetsdash
How to make the standard assets First Person Controller Dash?
I'm using the first person controller from the standard assets and I want to make it dash forward when you press left control. I've tried using this in fixed update:
if (Input.GetKeyDown(KeyCode.LeftControl))
{
m_MoveDir.x *= m_DashSpeed;
Debug.Log("Dashed");
}
m_DashSpeed is a private float thats set to about 20, but it doesn't work. I know that I'll need to add something like a couroutine to stop the player but at the moment I just want to be able to make the player surge forward.
Any help is appreciated, thanks for your time.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612211757im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
FirstPersonController keeps on moving for half a second after the key is released. 1 Answer
Trouble Implementing First Person Camera 1 Answer
Make a dash system using the Character Controller of Unity 0 Answers
is a head bob animation possible for first person controller with capsule collider 0 Answers