/DiceyDice

Sample app using SceneKit to draw dice.

Primary LanguageSwift

DiceyDice

A simple sample app that uses SceneKit to draw and throw dice.

Download: App Store

Dice Model Specifications

Because the dice model is a model purchased from a store, I am unable to include it in this repository. However, you can find or create your own model using the specifications as follows:

Bounding Box

  • Width: 2.454
  • Height: 2.463
  • Depth: 2.457
  • Scale: 0.25, 0.25, 0.25

Physics Body

  • Mass: 0.5
  • Friction: 0.8
  • Restitution: 0.8
  • Rolling friction: 0.5
  • Damping: 0.15
  • Angular damping: 0.6
  • Charge: 0.2
  • Center of Mass: 0.31, 0.304, -0.314
  • Collision Detection: Threshold = 0.45
  • Resting: ☑️ Allows resting

Ensure that your dice model is a box containing 6 sides, and has a model that reflects a typical 6-sided die's dots.