Activity 1


Custom Initial Condition

x1 y1 x2 y2
v1 θ1 v2 θ2

  

Upload Config







Drag and drop a configuration txt file here.
(Currently does not work on mobile browsers).





Current Condition

x1 y1 x2 y2

  

  

  

  

v1 θ1 v2 θ2

  

  

  

  




Keyboard Commands

GENERAL
Enter Initialise board
Space Play/Pause
R Reload default
S Save current board conditions
T Toggle trails
V Toggle energy conservation display
ADDITIONAL CONTROLS
J Flip all velocities
A Speed up sim by 2x
Z Slow down sim by 2x
ACCESSIBILITY
D Toggle dark mode
W Toggle labels

AirHockey

                   v0.1_Minimal

A Lightweight Rigid Body Simulator

Frank Wang (U. of Auckland)
https://fwphys.com

Based on Open-Source Components

Physics.js by Diego Lopez (McGill)
https://diegolopez.me

p5.js Library