dice-core
2026-03-01
Fix floor restitution parity, unmount guard, glow optimization, and export geometry initializer
5 files · 32+ · 19-
Physics parity fix
1 file changed
pre-simulate.tsCorrected floor restitution value to match the playback arena's physics
- Fixed floor restitution coefficient in pre-simulation to match the playback arena, ensuring dice settle consistently between simulation and rendering
harden
behavioral
1 file
pre-simulate.ts
Component fixes
3 files changed
DiceRoller.tsxAdded unmount guard preventing state updates after component cleanupPlaybackDie.tsxClear settle timeout on unmountdie-visuals.tsOptimized applyGlow by removing redundant operations
- Added unmount guards to DiceRoller and PlaybackDie to prevent state updates after cleanup, and optimized glow application
harden
behavioral
3 files
DiceRoller.tsxPlaybackDie.tsxdie-visuals.ts
Public API export
1 file changed
index.tsExported initializeDiceGeometryData for consumers who need to pre-load geometry