Unity Clean Ik

by biggzlar

An easy to use IK solver implementation for character controllers.

( Crawled an hour ago )
+

Unity_clean_IK

This is a barebones implementation of an IK solver, based on a Unity Example for Blendtrees. It includes repositioning and rerotation of the feet, as well as a collider displacing method, that pushes the character controller's collider upwards when there is no other way to ground both feet.

Setup:

  1. Set up your scene and characters (make sure the characters possess a character controller)
  2. Add the CleanIK script to your characters
  3. Assign the feet transforms respectively
  4. Test the scene and adjust foot offset
  5. Enable ik and rotation

Alt text