Aiming with Inverse Kinematics (IK) and Animation Rigging | Gun Series 12 | Unity Tutorial @LlamAcademy
Aiming with Inverse Kinematics (IK) and Animation Rigging | Gun Series 12 | Unity Tutorial  @LlamAcademy
Uploaded July 2023 | Updated September 2026, 2 hours ago
In this tutorial, learn how you can always have your character perfectly aim at their target without needing a million animations! We'll review the PlayerIK first introduced in Part 1 of the series and update the aiming to properly aim at the crosshair!

🔶 ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out 🙂
👨‍💻 Get the FULL FREE PROJECT on GitHub: github.com/llamacademy/scriptable-object-based-guns
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly

📚 Resources:
🟠 Mixamo (free animations): mixamo.com/#
🟠 Rifle Animation Pack Used: assetstore.unity.com/packages/3d/animations/rifle-basic-mocap-animation-pack-26676?aid=1101l9QvC
🟠 Full Series Playlist: youtube.com/watch?v=E-vIMamyORg&list=PLllNmP7eq6TQJjgKJ6FKcNFfRREe_L6to
🟠 Animation Rigging Documentation: docs.unity3d.com/Packages/com.unity.animation.rigging@1.1/manual/index.html
🟠 Multi-Aim Constraint: docs.unity3d.com/Packages/com.unity.animation.rigging@1.1/manual/constraints/MultiAimConstraint.html
🟠 Unity IK: docs.unity3d.com/Manual/InverseKinematics.html
🟠 Animator Scripting Reference: docs.unity3d.com/ScriptReference/Animator.html
🟠 Runtime Rig Forum Post: forum.unity.com/threads/generating-rig-at-runtime.935090

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

Chapters:
00:00 Topic Introduction
01:10 What is Inverse Kinematics? Using it in Unity for Gun Hand Placement
03:05 The Animation Rigging Package
03:35 Install and Set up Animation Rigging for Aiming a Third Person Character
08:08 Add Aiming Animation & Avatar Mask
10:00 Gun Placement
10:52 Final Animation Rigging Configuration
12:04 Inverse Kinematics Script - PlayerIK.cs
15:05 Place Inverse Kinematic Transforms
16:49 Finding the Inverse Kinematics Transform - PlayerGunSelector.cs
17:45 Move IK code to PlayerIK.cs. Play Animation based on Gun Type
18:53 Move Aim Transform Based on Camera - PlayerAction.cs
20:30 Demo with Animation Rigging and IK
20:57 Limit Camera Movement to Roughly Match Animation Rigging Constraints - ThirdPersonController.cs
22:26 Final Demo, Closing Thoughts, & How to Support LlamAcademy
Aiming with Inverse Kinematics (IK) and Animation Rigging | Gun Series 12 | Unity TutorialHow the Tilemap Tools Helped Me Expedite the Level Creation Process for My Minigolf MicrogameJobs System Line of Sight Checking | AI Series Part 40 | Unity TutorialScriptableObjects, Explained | Unity TutorialHeat up your game with a Flamethrower! | Unity Tutorial #shorts3 Twinkling Emissive Light Shaders | ShaderGraph Unity TutorialRead Texture Data from C# Scripts | Unity Tutorial #shortsSimple Animated Click Indicator Shader | Unity ShaderGraph TutorialBake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity Tutorial #shortsFREE Performance Optimization / Draw Call Reducer (HLOD) | Unity TutorialUnity Localization Tools | Learn How to Localize Your Game | Unity TutorialHow to Reset any Scene in Unity | Unity Tutorial
LlamAcademy |

Aiming with Inverse Kinematics (IK) and Animation Rigging | Gun Series 12 | Unity Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER