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
https://www.twitter.com/gigatank3000
💯 Want to help me out and allow me to keep making these tutorials? Consider supporting the channel on Patreon:
https://www.patreon.com/Comp3interactive
😍 AWESOME high quality 3D game assets available here:
https://shop.runemarkstudio.com/?ref=062Ed
💬 Join the Discord community here:
https://discord.gg/wWFsdYy
📱 Find us on social media for more Tips and Tricks:
https://facebook.com/comp3interactive
https://instagram.com/comp3interactive
https://twitter.com/comp3int
📱 Play our games for FREE here on Google Play:
https://bit.ly/2TisAQo
#UnityTutorial #Unity3D #Comp3interactive #GameDev