Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function createWallMesh():Mesh {
- //shares mesh walls between each other
- if (!referenceMesh) {
- //create reference mesh if one does not already exist
- referenceMesh = new Cube(new BitmapMaterial(getWallTexture(), true, false));
- }
- //clone referenced mesh
- return Mesh(referenceMesh.clone());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement