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

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



A Lightweight Rigid Body Simulator

Frank Wang (U. of Auckland)

Based on Open-Source Components

Physics.js by Diego Lopez (McGill)

p5.js Library