Rolling Bones: Physics Dice, Cups, Towers and Trays Kit
README.md
diceKit.recording
A roll as data, equal on every screen. The simulating peer pushes each die's pose (in the tray's own frame) at 30 frames a second, as whole numbers (tenths of a millimetre and ten-thousandths of a quaternion), plus the shaker cup's pose and sound cues. chunk cuts frames to send, apply merges what arrives, sample(rec, seconds) blends the two frames either side of a moment, final reads the resting poses and digest fingerprints the frames so two peers can check they hold the same roll. Because the numbers are whole, a copy sent over the network samples to the very same poses as the original.