×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Not Available
Added: Nov 5, 2017 7:16 AM
Views: 2564
Tags: geometry
  1.  Box b = new Box(1, 1, 1);
  2.         Geometry geom = new Geometry("Box", b);
  3.  
  4.         Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
  5.         mat.setColor("Color", ColorRGBA.Blue);
  6.         geom.setMaterial(mat);
  7.  
  8.         rootNode.attachChild(geom);