And this is the code that I applied:
[SpineBone(dataField: "skeletonAnimation")]
public string boneName;
Bone bone;
void start(); {
_sklamPlayerController = _sklamPlayer.GetComponent<PlayerController>();
this.bone = sklamPlayer.Skeleton.FindBone(boneName);
Vector3 worldPosition = bone.GetWorldPosition(sklamPlayer.transform);
}
public void Update()
{
if (_blnIsHoldingItem)
{
if (_sklamPlayerController == null)
_sklamPlayerController = GetComponent<PlayerController>();
Vector3 position = _sklamPlayer.transform.InverseTransformPoint(_sklamPlayerController.GetLastAimPosition());
bone.SetPositionSkeletonSpace(_sklamPlayerController.GetLastAimPosition());
Quaternion worldRotationQuaternion = bone.GetQuaternion();
}
}