void Start() { max_hand_distance_ = 1; rigid_hand_ = GetComponent <RigidHand>(); hand_controller_ = FindObjectOfType <HandController>(); is_hand_exist_ = GetComponentInParent <IsHandExist>(); hand_pos_ = rigid_hand_.GetPalmPosition(); if (rigid_hand_.GetLeapHand().IsRight) { hand_old_pos_ = right_hand_pos_zero_; } once_position_unification_ = false; distance_difference_ = new Vector3(0.0f, 0.0f, 0.0f); }
void Start() { max_hand_distance_ = 1; rigid_hand_ = GetComponent<RigidHand>(); hand_controller_ = FindObjectOfType<HandController>(); is_hand_exist_ = GetComponentInParent<IsHandExist>(); hand_pos_ = rigid_hand_.GetPalmPosition(); if (rigid_hand_.GetLeapHand().IsLeft) { hand_old_pos_ = left_hand_pos_zero_; } once_position_unification_ = false; distance_difference_ = new Vector3(0.0f, 0.0f, 0.0f); }