O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inverse Kinematics

Inverse Kinematics (IK) are important in game programming. It is typically used to make the character's movement more realistic in the world. One of the main uses of IK is the calculation of the player's feet and how they relate to the ground they are standing on.

In short, IK, is used to determine the position and rotation of the joints in a character based on a given position in space. For instance, to make sure the foot of a player is landing properly on the terrain it is walking on.

Unity has a built in IK system that can be used to do some basic calculation in this regard. Let's go ahead and implement the foot IK for our character. There are a few things that you will need to set up before we can enable IK for our humanoid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required