How to have bones move with IK in game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lazulily

I’m trying to make a 2D movement concept and the first thing I need to get right is the movement of the arm.
For moving the arm I decided to go with bones as pin joints can be a bit finicy and pull on eachother whereas bones don’t.
I have tried adding a kinematic body as a child of the hand and including it in the ik chain but it will only move its self, and if I put the hand as the child of the kinematic body, the ik chain breaks off.

I have a position 2d on the end of a hand and would like the move the arm using that but if I tell it to go toward the mouse it will go off on its own and not move the arm at all which is the same for both the kinematic body and the position 2d

Here is an example of what I would like to be able to do in game, and the setup I have, if you’d like to see the script I have for it I’ll give it to you in the comments.

https://imgur.com/a/rrd49a4

Thank you in advance :smiley: