3D Visualization

Plots are great for analysis, but sometimes you need to see the physics. Rumoca includes a built-in 3D viewer powered by Three.js that lets you map simulation state directly to interactive scenes — watch a pendulum swing, a satellite orbit, or a ball bounce in real time as the solver steps forward.

The viewer API is intentionally simple: an onInit callback to set up your scene and an onFrame callback to update it each timestep. You have full access to Three.js, so anything you can build in a normal WebGL application — custom meshes, particle trails, procedural textures — works here too. These tutorials introduce the API and show increasingly sophisticated scenes.