Spaces:
Sleeping
Sleeping
fix rotating
Browse files
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;
|