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 12, 2023
1 parent 523f917 commit c07b871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const calculatePlacementOnGalleryItem = (
position.set(outerRadius * Math.cos(centerAngle), 0, outerRadius * Math.sin(centerAngle));

// The lookAt vector is the normalized position vector
orientation.set(position.x, position.y, position.z).normalize();
orientation.set(-position.x, -position.y, -position.z).normalize();

// Adjust the position by the objectOffset along the orientation vector
position.addScaledVector(orientation, objectOffset);
Expand Down

0 comments on commit c07b871

Please sign in to comment.