Character IK adjusts a Humanoid after animation so its feet meet uneven ground, its upper body follows a look direction, and its hands align with equipped items. Use one IK provider on each animated model. Separate Generic first-person arms use their animations and item springs.

Add Character IK

  1. Import a valid Humanoid Avatar with head, hips, upper arms, hands, lower legs, and feet mapped. Start with a working Animator, Animator Monitor, locomotion, and camera or AI look source.
  2. Open Tools > Opsive > Ultimate Character Controller > Character Manager, select the character, and enable Animator, Model Type: Humanoid, and Unity IK. Build or update the character.
  3. On the animated model, confirm Character IK sits beside Animator and Animator Monitor. Repeat for every switchable humanoid model.
  4. Enable IK Pass on the intended Animator layers. Match Base Layer Index and Upper Body Layer Index to them; defaults are 0 and 4.
  5. Enter Play Mode and confirm the component enables when its camera or AI ILookSource attaches. Resolve Avatar, bone, layer, and look-source errors before tuning.

For supported RootMotion solvers, replace Character IK with Final IK Bridge and configure that integration’s required components. Keep exactly one CharacterIKBase provider per active model.

Ground feet and hips

The grounded solve casts toward the character’s gravity direction, corrects feet penetrating detected ground, and lowers hips for unequal foot heights. Vertical collision detection must be active for the normal ground solve.

Atlas standing on individual stair steps with both feet planted at different heights by Character IK

Inspector field Default Choose by result
Layer Mask Excludes ignored, character, overlay, water, UI, and visual-effect layers Include visible ground. Exclude invisible stair ramps/helper colliders so feet reach the actual treads.
Hips Position Adjustment Speed 4 Blend pelvis correction faster or more gradually.
Hips Position Offset 0 Add a small model-specific vertical correction.
Foot Offset Adjustment 0.005 Adjust sole clearance after checking Avatar and collider setup.
Foot Weight Active Adjustment Speed 10 Blend into ground or explicit-target correction.
Foot Weight Inactive Adjustment Speed 2 Blend back to animation.
Override Foot IK Weight -1 Automatic behavior. Other values set an initial target weight; explicit targets or ground correction can set it to 1.

To disable foot weighting through all these paths, set both foot adjustment speeds to 0. An override weight of 0 alone does not suppress ground correction or an explicit foot target.

Set the look response

The camera or AI look source normally supplies direction. Look At Offset shifts the body-and-arm target without rotating the camera:

Rear comparison of zero Look At Offset and a positive horizontal offset shifting Atlas's upper-body aim

Inspector field Default Effect
Look At Body Weight 0.025 Torso participation.
Look At Head Weight 0.2 Combined head and eye response. Use a custom provider for independent eyes.
Look At Clamp Weight 0.35 Higher values restrict Unity’s look-at solve.
Look At Yaw Limit 75 Maximum sideways angle in character space; 180 allows unrestricted yaw.
Look At Adjustment Speed 0.5 Target-position blending.
Look At Weight Adjustment Speed 0.2 Weight blending.
Active Look At State Name LookAt Character State activated by an explicit look target.

Three increasing body and head look-at weights bending Atlas progressively farther toward an upward target

Tune one value at a time. Enable Debug Draw Look Ray in the editor to compare the green Scene-view ray with the intended target:

Atlas aiming upward with a green debug ray marking the Character IK look direction

The Look At ability can supply an explicit target in place of the normal look source.

Align arms and item grips

Upper Arm Weight, Left Hand Weight, Right Hand Weight, Left Elbow Weight, and Right Elbow Weight default to 1. Their adjustment speeds blend between animation and IK.

Upward-aim comparison with upper-arm weight disabled and enabled, showing the dominant arm align to the rifle

Rifle-pose comparison with hand IK weight disabled and enabled, showing both hands reposition toward the aim direction

For a two-handed item:

  1. Expand IK on its Third Person Perspective Item.
  2. Create a child Transform on the visible item at the other hand’s grip, then assign Non Dominant Hand IK Target.
  3. Optionally assign an elbow guide under Non Dominant Hand IK Target Hint.
  4. Equip, aim, use, reload, and unequip. The active model receives and clears item targets with the item.
  5. When reload must release the grip, use its State preset to reduce the relevant hand/elbow weights and restore them afterward.

An equipped dominant item and positive Upper Arm Weight can keep upper-arm rotation and hand positioning active after Aim or Use stops. Use the intended State weights or unequip when animation should take over. Configure Right Hand Rotation Spring in the Inspector; use per-limb weights and offsets for runtime State presets.

Interact uses Ability IK Target for temporary hand, elbow, foot, or knee goals. Ability targets take priority over item targets while active. Defaults are Delay 0, Interpolation Duration 0.2, and Duration 1 seconds; choose a positive interpolation duration and a longer active duration.

Solve order and lifetime

Unity’s OnAnimatorIK calls the solver after each IK-enabled layer. The base layer handles target interpolation, feet, hips preparation, and look-at. The upper-body layer handles hand rotation, upper arms, hand positioning, and elbow hints. A requested additional hand pass uses another IK-enabled layer; Late Update finalizes hips correction.

Character IK responds to look-source attachment, item equip/unequip, Aim/Use, forces, Animator snaps, death, and respawn. Death disables it; respawn restores its previous enabled state. Inspector settings persist on the scene/prefab. Restore the owning ability, item, interaction, and temporary target after loading when a pose must continue.

Each animated model solves locally. Remote models use third-person conditions for first-person-specific hand behavior. Synchronize the gameplay target or action through the networking integration; Character IK does not transmit custom targets or final bone poses.

Verify the pose

  1. Confirm enablement after look-source attachment, with no Avatar/bone/layer errors.
  2. Test flat ground, slopes, and stairs. Check soles and pelvis for penetration, stretch, or sudden drops. If feet follow an invisible ramp, exclude its layer while retaining visible steps.
  3. Move the look target up, down, and sideways. Compare the debug ray and change offset, weights, clamp, and yaw limit individually.
  4. Equip a two-handed item. Check the grip and elbow hint, then Aim/Use, release, reload, and unequip. Confirm State-based grip release lasts for the intended interval and targets clear afterward.
  5. Trigger Look At and Interact targets. Confirm the selected limb reaches its target over the configured duration and returns cleanly.
  6. Switch supported perspectives/models, test death/respawn and loading, and compare local/remote results. Each model should retain one provider and restore gameplay-owned targets appropriately.

For a missing pose, check Humanoid mapping, look-source attachment, IK Pass, layer indexes, and active-model ownership. For jitter or duplicate solving, remove competing providers. For a persistent grip, check the item’s active target and State-controlled hand/elbow weights.

Extend the solver

CharacterIK derives from CharacterIKBase and uses OnAnimatorIK. Its entry points include SetLookAtPosition, GetDefaultLookAtPosition, SetItemIKTargets, SetAbilityIKTarget, and UpdateSolvers. The OnUpdateIKPosition and OnUpdateIKRotation delegates can adjust a final limb result before Unity receives it. CharacterIKBase.IKGoal includes both hands, elbows, feet, and knees.

Related: