ition, quaternion) => {
  if (!rig.open) {
    rig.position.copy(position);
    rig.quaternion.copy(quaternion);

    rig.open = true;
  } else {
    rig.open = false;
  }

  _animateRig();
};
const _closeRig = () => {
  rig.open = false;

  _animateRig();
};
const _animateRig = () => {
  const startScale = rig.scale.x;
  const endScale = rig.open ? 1 : 0;
  const startTime = Date.now();
  const endTime = startTime + 150;
  rig.animation = {
    update() {
      const now = Date.now();
      const factor = 