Hello, i have a gun with ik target that is attached to the two bone ik constraint target at run time by this script:
public TwoBoneIKConstraint rightHand;
public GameObject makarov;
// Start is called before the first frame update
void Start()
{
if(!IsOwner) { return; }
}
// Update is called once per frame
void Update()
{
if (!IsOwner) { return; }
if (makarov.activeSelf)
{
Debug.Log("tttt");
rightHand.data.target = makarov.transform.Find("RIghtHandIK");
}
}
but the arm doesnt follow the target:
(vid starts at 0:23 seconds)