Advertisement
Guest User

Untitled

a guest
May 1st, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public static function createWallMesh():Mesh {
  2.             //shares mesh walls between each other
  3.            
  4.             if (!referenceMesh) {
  5.                 //create reference mesh if one does not already exist
  6.                
  7.                 referenceMesh = new Cube(new BitmapMaterial(getWallTexture(), true, false));
  8.             }
  9.            
  10.             //clone referenced mesh
  11.            
  12.             return Mesh(referenceMesh.clone());
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement