simple export
This commit is contained in:
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
||||
|
||||
const mazeGeometry = new THREE.BoxGeometry( 1, 1, 1 );
|
||||
|
||||
class MazeMesh extends THREE.InstancedMesh {
|
||||
export default class MazeMesh extends THREE.InstancedMesh {
|
||||
constructor( width, length, material ) {
|
||||
super( mazeGeometry, material, width*length - 2 );
|
||||
this.length = length
|
||||
@@ -59,6 +59,4 @@ class MazeMesh extends THREE.InstancedMesh {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { MazeMesh }
|
||||
}
|
||||
Reference in New Issue
Block a user