Live cube

Does anyone know how to make a “Live cube” with Swift 3d? Its the type of cube that breaks apart into many little pieces. There is an example on the swift page. If you coule help that would be cool. Thanks!