PixAnvil compiles your JavaScript simulation code when you hit "Reset". It loads the code from three tabs:
The 3D vector class vec3 is key to most 3D work. In PixAnvil, this class is a renamed version of BABYLON.Vector3. By convention, vectors in PixAnvil are written with capital letters. Given two vectors A and B:
Your code in Setup, Loop, and UI is also given access to a number of variables: