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.tsx3D dice arena with floor panels, wireframe rings, radial spokes, and collision boundariesindex.tsUpdated barrel exports to include Chamber
- Created
Chamber.tsxcomponent (~330 lines) rendering the 3D dice arena with floor panels, wireframe rings, radial spokes, and collision boundaries using@react-three/rapierinstantiate behavioral1 file
Chamber.tsx
Die and DiceScene physics refinements
5 files changed
Die.tsxPhysics tuning: damping, restitution, friction, CCD, torque impulseDiceScene.tsxImproved dice layout, positioning, and impulse generationDiceRoller.tsxBetter state management and roll handlingmain-lib.tsxUpdated library exportsvite.config.tsAdjusted for component bundling
- Added torque impulse support to
Diecomponent for more realistic dice tumbling remediate behavioral1 file
Die.tsx
- Rewrote
DiceScene.tsxwith improved dice layout, positioning, and impulse generation remediate behavioral1 file
DiceScene.tsx
- Overhauled
Die.tsxphysics: 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 behavioral1 file
Die.tsx
- Expanded
DiceRoller.tsxwith better state management and roll handling remediate internal1 file
DiceRoller.tsx
- Updated
src/main-lib.tsxexports andsrc/components/index.tsbarrel file remediate internal2 files
main-lib.tsxindex.ts