Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
isoteriksoftware committed Nov 15, 2023
1 parent c057b57 commit b68de3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};
Expand Down

0 comments on commit b68de3b

Please sign in to comment.