Hi, I’m trying to make a specific type of control where the player has an “arm” attached to their model and can move it around with the mouse. However, I want only the far end to follow the mouse, with the hinged end staying firmly put. As it stands, I’ve tried to achieve this using a character joint between the player and the arm, and by putting another object at the end of the arm attached with another hinge and giving it
Vector3 temp = Input.mousePosition;
temp.z = 1f;
this.transform.position = Camera.main.ScreenToWorldPoint(temp);
However, this this causes the other object to separate from the arm, and causes the arms physics to freak out and send the player flying over the map. I’ve looked all over for something like this but can’t seem to find it implemented anywhere. I’d really appreciate any help on how to do this, or just making following the mouse or using character joints better in general.
I’ve included a poor doodle of my concept.
