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.ts Corrected 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.tsx Added unmount guard preventing state updates after component cleanup
  • PlaybackDie.tsx Clear settle timeout on unmount
  • die-visuals.ts Optimized 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.tsx
    • PlaybackDie.tsx
    • die-visuals.ts

Public API export

1 file changed
  • index.ts Exported initializeDiceGeometryData for consumers who need to pre-load geometry
  • Exported initializeDiceGeometryData from the public API for consumers needing geometry pre-loading interface internal
    1 file
    • index.ts