JUMP (pogo pogo pogo pogo) BOUNCE (pogo pogo pogo pogo)
Yeah... In this video we're going to add in some jumping functionality to our first person controller! Check it out!
------------- UPDATE EDIT
We need to reset the moveDirection.y value on landing to avoid falling speed buildup. To solve this perform a velocity check after applying gravity in the ApplyFinalMovements method:
[YouTube doesn't allow angled brackets in descriptions... use the less than symbol instead of (is less than) 😂]
if (characterController.velocity.y (is less than) -1 && characterController.isGrounded)
moveDirection.y = 0;
Explanation: If you're grounded but your velocity is less than -1 then thats the landing frame so reset your move directions Y value to 0
---------
Join me and learn your way through the Unity Game Engine, the C# language and the Visual Studio editor. Remember, if this video was useful then DROP A LIKE! 👍
🤩 SPONSORED LINKS:
https://www.gigatank3000.com
/ gigatank3000
💯 Want to help me out and allow me to keep making these tutorials? Consider supporting the channel on Patreon:
/ comp3interactive
😍 AWESOME high quality 3D game assets available here:
https://shop.runemarkstudio.com/?ref=...
💬 Join the Discord community here:
/ discord
📱 Find us on social media for more Tips and Tricks:
/ comp3interactive
/ comp3interactive
/ comp3int
📱 Play our games for FREE here on Google Play:
https://bit.ly/2TisAQo
#UnityTutorial #Unity3D #Comp3interactive #GameDev