How to control the character's hands separately

Hello everyone. I’m working on a third-person game and I need to make it so that the player can control both of the character’s hands separately when climbing a rock. For example, by holding a button and using the mouse to guide the left hand to a specific ledge, the character could grab onto it, and the same with the right hand. I just can’t figure out how to implement this mechanic. I’d appreciate it if anyone knows how to do it.

Hey there @Stereomono9! Welcome to the community! The technique you’re looking for, is hand inverse kinematics, IK for short. This will allow you to control the location of each hand via script and handle the elbow position realistically with the IK solver. Some of these resources should help with the process.

Thread with some solid (but older) resources:

A video going through a climbing system utilizing hand IK positioning:

An explanation of Two Bone IK:

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

1 Like

Thank you very much. I believe I need to study blueprints more, as I’m still unable to implement this. I also tried using an integrated AI system, but it was unsuccessful.

If possible, I would recommend following one of those hand IK tutorials from start to finish first, then once you understand the system, it’s as easy as telling the hands where you want them to be. The simplest way to go about what you’re doing would be to trace from the mouse to the surface, and set that location as the hand’s IK target.

LLMs are going to be harder to work with for any visual scripting language, due to the visual component. This means LLMs are trained primarily on users talking about the blueprints, which is already one step further down the chain.

1 Like