Rock YouTube channel with real views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

MOUSE AIMING with IK in Unity - including basic platform movement and physics

Follow
Imphenzia

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/owadbo4doag...

You can support me on Patreon to help me make these videos:
  / imphenzia  

Imphenzia Merch is available:
https://teespring.com/stores/imphenzia

My in depth tutorial, how to learn Low Poly Modeling in Blender:
   • Learn Low Poly Modeling in Blender 2....  

Blender settings video (shiny edges):
   • My Blender 2.82 Setup (for the 10 Min...  

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:
  / imphenzia  

My Itch.Io page with all my Ludum Dare games:
https://imphenzia.itch.io/

Imphenzia Discord server invite:
  / discord  

posted by k5lo1kadl