Skip to main content
100%

three.js utils

✓ Published0🌍 Public
MMcNull
Last edited Jan 4, 2024
Created on Jan 3, 2024

This example showcases a collection of utility classes for building interactive Three.js applications. It includes an `ArrayPool` for efficient object management, a `Timer` class that tracks `deltaTime`, `elapsedTime`, and `fps`, and a `Random` number generator with a Park-Miller algorithm. An `OrbitControls` class extends Three.js's controls, persisting camera state to `localStorage` and loading it on initialization. The code also defines a `Vec2` vector class for 2D math operations. The rendering uses WebGL, leveraging Three.js, with utilities designed to manage camera manipulation, timing, and data structures.

AI-generated description

Similar vizzes