Making hands accurately grab players

My game has large hands that will grab players when near. I want to know how i can make this hand actually grab the player with an animation.


(e.g player goes within range of hand, say, to the left of it. the hand will then play an animation of it reaching to the player and grabbing it, then pulling it under the water.)

2 Likes

The animation cannot simulate physics, so you’re gonna need to apply some forces to “grab” the player. If the player sinks straight down then consider linear velocity. If you like pull them towards the hand and then drown them, maybe consider align position with the attachments very close together

1 Like

it appears i havent explained accurately enough. i can handle the physics just fine, but i want the animation to reach towards the player it detects. if the player is e.g to the right of the hand and the animation reaches to it’s left, it wont look accurate at all.

Maybe just make the animation of he hand closing its fingers, and just tween the hand relative to the players position, and play the closing fingers animation and add the physics part.

2 Likes

You can achieve that by using something called “Inverse Kinematics”

1 Like

this will probably solve my problem but i wont mark it as a solution yet since i dont have time to test it rn