✨Globe: Position camera to current continent
Quite complex to figure out but needed to use spherical coordinates to apply to the camera, inspired from Three.js Thanks @Tape on Discord/Three.js!
This commit is contained in:
@@ -44,7 +44,8 @@ export const load: PageServerLoad = async () => {
|
||||
continents: continent (filter: { countries: { slug: { _neq: "_empty" }}}) {
|
||||
name
|
||||
slug
|
||||
rotation
|
||||
rotation_x
|
||||
rotation_y
|
||||
}
|
||||
|
||||
settings {
|
||||
|
||||
Reference in New Issue
Block a user