From b68de3b049047c11970e79082efe87b6ae38f582 Mon Sep 17 00:00:00 2001 From: imran Date: Wed, 15 Nov 2023 13:29:31 +0100 Subject: [PATCH] Update utils.ts --- src/core/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils.ts b/src/core/utils.ts index 8e3345d..4f71fb1 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -36,9 +36,9 @@ export const calculatePlacementOnGalleryItem = ( position.set(outerRadius * Math.cos(centerAngle), 0, outerRadius * Math.sin(centerAngle)); - orientation.set(-Math.cos(centerAngle), 0, -Math.sin(centerAngle)).normalize(); + orientation.set(Math.cos(centerAngle), 0, Math.sin(centerAngle)).normalize(); - position.addScaledVector(orientation, -objectOffset); + position.addScaledVector(orientation, objectOffset); return { position, orientation }; };