imwithye commited on
Commit
fb18574
·
1 Parent(s): 050237b

fix rotating

Browse files
Files changed (1) hide show
  1. src/components/rotator.tsx +1 -1
src/components/rotator.tsx CHANGED
@@ -33,7 +33,7 @@ export const Rotator = ({ facingDirection }: RotatorProps) => {
33
  }
34
  break;
35
  case "back":
36
- sign = rotatingDirection.current === "clockwise" ? 1 : 1;
37
  rotatingGroup.current.rotation.z += sign * delta * speed;
38
  if (Math.abs(rotatingGroup.current.rotation.z) > Math.PI / 2) {
39
  isRotating.current = false;
 
33
  }
34
  break;
35
  case "back":
36
+ sign = rotatingDirection.current === "clockwise" ? 1 : -1;
37
  rotatingGroup.current.rotation.z += sign * delta * speed;
38
  if (Math.abs(rotatingGroup.current.rotation.z) > Math.PI / 2) {
39
  isRotating.current = false;