createBox method

void createBox()

Implementation

void createBox(){
  final m = MeshPhongMaterial.fromMap({
    'color': 0x999999,
  })..flatShading = true;
  final box = Mesh(facetedBox(1.8,1.8,1.8,0.2),m);
  add(box);
  interactiveObjects.add(box);
  Group g = Group();
  g.add(_createEdge(0.325, 0, 0, 0, 0, math.pi/2,0xff0000));
  g.add(_createEdge(0, 0.325, 0, 0, 0, 0,0x00ff00));
  g.add(_createEdge(0, 0, 0.325, math.pi/2, 0, 0,0x0000ff));
  add(g..scale.scale(3.25));
}