So I have a player. It has hands attached made from two rectangles.(I attached .GIF)
So I need it to move how the player moves right stick on joystick. I made some controls, but I think they are poor, and inaccurate. I believe, it's possible to make it better. Hope I will find some help here. What I made up is an object (invisible, visible only for describing problem, debuging purposes) that moves on axis of joystick. Then there are player, he has hands. On the lower hand lower there is script attached. Before I had made spring, but I didn't liked result. Script:
public GameObject Target;
void Update () {
if (Input.GetKey (KeyCode.J)) {
transform.position = Vector3.MoveTowards(transform.position, Target.transform.position, 1);
}
So the question is, how to upgrade this system hands control system? I would like it to be more physical, because I'm making a volleyball game.