undef-dice 2026-01-29
Chamber component added; Die component physics tuned with CCD, damping, and torque impulse support
7 files · 733+ · 195-

Chamber component

2 files changed
  • Chamber.tsx 3D dice arena with floor panels, wireframe rings, radial spokes, and collision boundaries
  • index.ts Updated barrel exports to include Chamber
  • Created Chamber.tsx component (~330 lines) rendering the 3D dice arena with floor panels, wireframe rings, radial spokes, and collision boundaries using @react-three/rapier instantiate behavioral
    1 file
    • Chamber.tsx

Die and DiceScene physics refinements

5 files changed
  • Die.tsx Physics tuning: damping, restitution, friction, CCD, torque impulse
  • DiceScene.tsx Improved dice layout, positioning, and impulse generation
  • DiceRoller.tsx Better state management and roll handling
  • main-lib.tsx Updated library exports
  • vite.config.ts Adjusted for component bundling
  • Added torque impulse support to Die component for more realistic dice tumbling remediate behavioral
    1 file
    • Die.tsx
  • Rewrote DiceScene.tsx with improved dice layout, positioning, and impulse generation remediate behavioral
    1 file
    • DiceScene.tsx
  • Overhauled Die.tsx physics: adjusted linear damping (0.3 -> 0.15), angular damping (0.3 -> 0.4), restitution (0.6 -> 0.2), added friction (0.7), switched to ball colliders, and enabled continuous collision detection (CCD) remediate behavioral
    1 file
    • Die.tsx
  • Expanded DiceRoller.tsx with better state management and roll handling remediate internal
    1 file
    • DiceRoller.tsx
  • Updated src/main-lib.tsx exports and src/components/index.ts barrel file remediate internal
    2 files
    • main-lib.tsx
    • index.ts