コード例 #1
0
    void GripAction(HandController handController)
    {
        Vector3 controllerPosition = handController.GetControllerPosition();

        Vector3 traversal = controllerPosition - handController.transform.localPosition;

        transform.localPosition -= traversal;
        handController.transform.localPosition += traversal;

        _lastTraversial = traversal * -1;
    }