15 unstable releases (3 breaking)
0.3.4-beta.3 | Apr 9, 2023 |
---|---|
0.3.4-beta.2 | Apr 8, 2023 |
0.2.0 | Nov 20, 2022 |
0.1.3 | Nov 1, 2022 |
0.0.2 | Oct 6, 2022 |
#1213 in Game dev
665KB
207 lines
🎲 bevy_dice
Physics-based dice rolls for bevy. You can you this plugin to make tabletop games.
Dice rolls are performed in a physical space, rendered to a image handle which you can display in your UI when dice rolls are needed. Results are emmited as events, so you can listen for them and perform actions based on the result.
Dependencies
Name | Version |
---|---|
bevy | 0.10.1 |
bevy_rapier3d | 0.21.0 |
Usage
See examples/roll.rs
Dice 3D Model
Model Information:
- title: Dice
- source: https://sketchfab.com/3d-models/dice-3b955af797e140eca0947ede57f412ba
- author: tnRaro (https://sketchfab.com/tnRaro)
Model License:
- license type: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
- requirements: Author must be credited. Commercial use is allowed.
If you use this 3D model in your project be sure to copy paste this credit wherever you share it: This work is based on "Dice" (https://sketchfab.com/3d-models/dice-3b955af797e140eca0947ede57f412ba) by tnRaro (https://sketchfab.com/tnRaro) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
Dependencies
~50–84MB
~1.5M SLoC