Home Artists Posts Import Register
The Offical Matrix Groupchat is online! >>CLICK HERE<<

Content

Please find the project files for this tutorial here

https://drive.google.com/file/d/1QWVViNY4PzvPuFn5nKrsRGyC8OVRd5ub/view?usp=sharing

Any questions or issues please let us know.

Thanks

Files

Stand Back Up! How to Reverse Ragdoll Physics (Unity Tutorial)

In this Unity tutorial we're going to to look at how we can reverse ragdoll physics, and have the character stand back up again. The project files are available to our patrons here: ► https://www.patreon.com/posts/71972693 Want to follow along? This project is a good starting point ► https://www.patreon.com/posts/project-files-68074022 The final script can be found here ► https://dotnetfiddle.net/v7ieoM Help support our work: ► Patreon: https://www.patreon.com/ketragames ► Ko-fi: https://ko-fi.com/ketragames Follow us: ► Ketra Games: http://www.ketra-games.com ► Patreon: https://www.patreon.com/ketragames ► Twitter: https://twitter.com/ketragames ► Facebook: https://facebook.com/ketragames 0:28 - Recap of ragdoll physics 1:03 - First attempt at reversing the ragdoll 2:57 - Understanding why it didn't work 3:38 - Realigning the zombie position 6:00 - Adding a stand up animation 11:05 - Transitioning to the stand up animation 20:30 - Improving the bone transitions 23:58 - Finishing touches 24:52 - Summary #KetraGames #LearnUnity #UnityTutorials #UnityTips

Comments

Anonymous

Hi, firstly thank you for this video. It's very useful:D But in my project something is wierd. I think about resetting behaviour function. I got some erros about bones rotations.And I bring the video link below that comment that about my problem and code error parts. Maybe you can help me. Thank you in advance. :)

Anonymous

https://drive.google.com/drive/folders/1abCpySiL-0uhsxgaToW1y0ygC_JDLXpt?usp=sharing

ketragames

Hi Hacer, thanks for your support and sorry to hear you're having some problems. Looking at the error in the console it seems like the rotation value that is being set is invalid. Can you debug and put a breakpoint on this line? _bones[boneIndex].localRotation = Quaternion.Lerp( _ragdollBoneTransforms[boneIndex].Rotation, _standUpBoneTransforms[boneIndex].Rotation, elapsedPercentage); I think possibly one of the two values used in the Lerp have not been initialised properly Either _ragdollBoneTransforms[boneIndex].Rotation or _standUpBoneTransforms[boneIndex].Rotation Also, have you managed to download the source from this project. Can you spot any differences with your project?