Feature: books start levitating

This commit is contained in:
Dejvino
2025-11-16 16:32:13 +01:00
parent 6e2a59ce77
commit 2e1e6bddfa
3 changed files with 73 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@ export function initState() {
// Utilities
loader: new THREE.TextureLoader(),
landingSurfaces: [],
bookLevitation: {
state: 'resting', // 'resting', 'levitating', 'returning'
timer: 0,
},
books: [], // Array to hold all individual book meshes for animation
raycaster: new THREE.Raycaster(),
seed: 12345,
};