MOUSE AIMING with IK in Unity - including basic platform movement and physics
EXPAND DESCRIPTION to see TIMESTAMP shortcuts!
The main purpose of this video is to demonstrate Mouse Aiming using IK (inverse kinematic) that is built in to Unity without the need for any third party assets. I have also included a lot of extra content to create basic platformer style movement and physics including walk animation, jumping, and firing bullets.
You can skip to 35:35 for the IK Aim Arm at Target if you are only here for that part.
** TIMESTAMP SHORTCUTS (Detailed) **
00:02:27 Importing the player character mesh
00:03:50 Importing and parenting pistol / gun and hat props
00:05:02 Adding the Animator Controller component to the player
00:05:59 Setting up the Animator with Idle Pose Animation
00:06:08 Setting up the Humanoid Rig
00:06:45 Fixing "floating feet" issue in character animation
00:08:07 Creating the player script that controls movement and actions
00:08:18 Adding Rigidbody and Collider to player
00:08:59 Increasing Gravity for Platformer Look and Feel
00:09:24 Setting up Player Walk Speed and Jump Height
00:10:11 Adding Player Ground Check
00:12:13 Capturing Left / Right Input for Player Movement and Velocity
00:14:45 Making the player face in the direction of the mouse aim target
00:16:24 Implementing Mouse Aiming with mouse raycast
00:21:53 Walk Animations
00:25:50 Fixing Player Facing Walk Direction Issue
00:28:50 Jumping
00:35:35 IK: Aim Arm at Target
00:38:40 Look at Target with Head
00:40:10 Firing a bullet with Raycast Hit Detection
00:45:34 Bullet Raycast Hit Detection including reflection vector
00:56:00 Arm Recoil Animation
01:02:05 Fixing character getting stuck on platform sides
** DOWNLOADS **
You can download the Unity Project that I created in this video here (Unity 2019.2.3f1 was used, but any recent version should work):
https://www.dropbox.com/s/owadbo4doag99q9/MouseAimingWithIK-UnityProject.zip?dl=0
You can support me on Patreon to help me make these videos:
https://patreon.com/imphenzia
Imphenzia Merch is available:
https://teespring.com/stores/imphenzia
My in depth tutorial, how to learn Low Poly Modeling in Blender:
https://www.youtube.com/watch?v=1jHUY3qoBu8
Blender settings video (shiny edges):
https://www.youtube.com/watch?v=BlxiCd0Upg4
If you want to use the palette style UV coloring method, I go through that in both of the above linked videos.
My official web site:
https://www.imphenzia.com
Twitter:
https://twitter.com/imphenzia
My Itch.Io page with all my Ludum Dare games:
https://imphenzia.itch.io/
Imphenzia Discord server invite:
https://discord.gg/sR7pZ4B
Видео MOUSE AIMING with IK in Unity - including basic platform movement and physics канала Imphenzia
The main purpose of this video is to demonstrate Mouse Aiming using IK (inverse kinematic) that is built in to Unity without the need for any third party assets. I have also included a lot of extra content to create basic platformer style movement and physics including walk animation, jumping, and firing bullets.
You can skip to 35:35 for the IK Aim Arm at Target if you are only here for that part.
** TIMESTAMP SHORTCUTS (Detailed) **
00:02:27 Importing the player character mesh
00:03:50 Importing and parenting pistol / gun and hat props
00:05:02 Adding the Animator Controller component to the player
00:05:59 Setting up the Animator with Idle Pose Animation
00:06:08 Setting up the Humanoid Rig
00:06:45 Fixing "floating feet" issue in character animation
00:08:07 Creating the player script that controls movement and actions
00:08:18 Adding Rigidbody and Collider to player
00:08:59 Increasing Gravity for Platformer Look and Feel
00:09:24 Setting up Player Walk Speed and Jump Height
00:10:11 Adding Player Ground Check
00:12:13 Capturing Left / Right Input for Player Movement and Velocity
00:14:45 Making the player face in the direction of the mouse aim target
00:16:24 Implementing Mouse Aiming with mouse raycast
00:21:53 Walk Animations
00:25:50 Fixing Player Facing Walk Direction Issue
00:28:50 Jumping
00:35:35 IK: Aim Arm at Target
00:38:40 Look at Target with Head
00:40:10 Firing a bullet with Raycast Hit Detection
00:45:34 Bullet Raycast Hit Detection including reflection vector
00:56:00 Arm Recoil Animation
01:02:05 Fixing character getting stuck on platform sides
** DOWNLOADS **
You can download the Unity Project that I created in this video here (Unity 2019.2.3f1 was used, but any recent version should work):
https://www.dropbox.com/s/owadbo4doag99q9/MouseAimingWithIK-UnityProject.zip?dl=0
You can support me on Patreon to help me make these videos:
https://patreon.com/imphenzia
Imphenzia Merch is available:
https://teespring.com/stores/imphenzia
My in depth tutorial, how to learn Low Poly Modeling in Blender:
https://www.youtube.com/watch?v=1jHUY3qoBu8
Blender settings video (shiny edges):
https://www.youtube.com/watch?v=BlxiCd0Upg4
If you want to use the palette style UV coloring method, I go through that in both of the above linked videos.
My official web site:
https://www.imphenzia.com
Twitter:
https://twitter.com/imphenzia
My Itch.Io page with all my Ludum Dare games:
https://imphenzia.itch.io/
Imphenzia Discord server invite:
https://discord.gg/sR7pZ4B
Видео MOUSE AIMING with IK in Unity - including basic platform movement and physics канала Imphenzia
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Blender 2.82 - Rigify to Unity Tutorial - How to Export a Rigify Character and Import it into UnityUsing my Real Bike to control my Racing GameLet's Model an AT-AT WALKER in 10 MINUTES in Blender 2.82 - ep. 10IK Rig: Procedural Pose AnimationAnimation Bootcamp: An Indie Approach to Procedural AnimationLet's Model a SNOW SCENE in 10 MINUTES (plus Bonus Xmas Challenge ) - Blender 2.91 - Ep. 53Aiming IK MECHANICS_Making Survival-Shooter Game in Unity_PART_3Active Ragdolls in UnityLet's Model and Rig a Spider Bot in 10 Minutes (bonus animations) - ep. 71 - Blender 2.92How To Animate Characters In Unity 3D | Animation Layers ExplainedLet's MODEL and RIG 5 characters in 10 MINUTES in Blender 2.82 - ep. 16Revealing my Unity Platformer ProjectHow to Aim 2D CharacterLet's model an RTS FACTORY in 10 MINUTES - ep. 70 - Blender 2.92I made a 1D Racing Game with a LED stripLow Poly WW2 Spitfire Aircraft in Blender 2.81Procedural motion for animated skeletons! (Tutorial)Unity Bolt vs C# Scrips - complete tutorial - which one is for you?How to aim a weapon using inverse kinematics in Unity [AI #05]