Garry's Mod

Garry's Mod

9,251 ratings
IK Foot
6
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Scenic, Realism
File Size
Posted
Updated
1.921 KB
Dec 28, 2018 @ 5:45am
Dec 29, 2018 @ 4:08pm
2 Change Notes ( view )

Subscribe to download
IK Foot

Description
This addon simulates Inverse Kinematics algorithm for player legs, like on NPC legs.

Features
  • Realistic legs behavior
  • Сompatibility with any animations.

Client console commands
  • player_ik_foot
    - enable/disable inverse kinematic for foot. 1 – on, 0 – off (def. 1)
  • player_ik_foot_lean
    - enable/disable player movement with additional leaning. 1 – on, 0 – off (def. 0)
  • player_ik_foot_ground_distance
    - max collision distance feet with an obstacle. (def. 45)
  • player_ik_foot_smoothing
    - animation smoothing. (def. 17)
  • player_ik_foot_debug
    - enable/disable display debug tools. 1 – on, 0 – off (def. 0)

Warning!
This is not a complete implementation IK, due to problems with bones manipulation and need to support custom animations - all calculations are approximate. Because of this, the algorithm may work incorrectly in some places. Fortunately, probability of this is minimal.