📄️ Particle & Point
The Particle class is the fundamental building block of any simulation. The `` component is its declarative React counterpart.
📄️ Vec2
The Vec2 class provides a robust implementation for 2D vectors, which are used throughout the library to represent positions, velocities, and forces.
📄️ VerletJS & VerletCanvas
This page documents the main simulation container, which is the VerletJS class for vanilla JavaScript, and the `` component for React.
📄️ Constraints
Constraints are rules that define the relationships between particles. They are the core mechanism for building structures. This page documents both the low-level JavaScript classes and their corresponding React components.
📄️ Composites & Objects
This section covers both the low-level Composite class and the high-level helper functions and React components used to create common shapes.
📄️ Rotation
verlet-engine provides helper functions to rotate particles and composites around a center point. These functions are mutable, meaning they directly modify the pos and lastPos of the particles.