IK Foot
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.