diceKit.package
README.md
diceKit.DiceTray
One multiplayer dice tray on its own synced entity; spawn it with DK.Tray { ... } from diceKit.api in a scene's build. Needs no sibling components. The peer that owns the entity (the room host for a scene tray) is the roller: it runs the game's canRoll rule, simulates the dice with real rigid bodies out of sight and streams the recorded poses; every peer, the roller too, draws the dice from that recording on the session clock, so all screens show the same tumble and result, and raises rolled as the dice land. The last result and resting poses sit in the synced state field for late joiners, and a roll whose roller leaves is carried on by the peer the tray passes to.
Draws the tray, the cup or tower when the roll uses one, the dice in the chosen look, the result displays (floating numbers, total banner, tally card) and a Roll button with a hint. Input: the R key (key), pad A, a click or tap on the tray, a drag or swipe to aim and set strength.