Skip to content

Commit

Permalink
Re-fix rings orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Dec 17, 2024
1 parent 7d50248 commit 893c635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/rings.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default Kapsule({
const lngAccessor = accessorFn(state.ringLng);
const altitudeAccessor = accessorFn(state.ringAltitude);

const globeCenter = new THREE.Vector3(0, 0, 0);
const globeCenter = state.scene.localToWorld(new THREE.Vector3(0, 0, 0)); // translate from local to world coords

state.dataMapper
.onUpdateObj((obj, d) => {
Expand Down

0 comments on commit 893c635

Please sign in to comment.