@orca-fe/x-map
Version:
27 lines (26 loc) • 735 B
TypeScript
import * as THREE from 'three';
declare type Polyline = [number, number][];
export interface WallOptions {
polyline?: Polyline;
height?: number;
noiseScale?: number;
lineWidth?: number;
lineColor?: number;
}
export default class Wall {
protected meshes: THREE.Mesh[];
height: number;
lineWidth: number;
lineColor: number;
material: THREE.RawShaderMaterial;
polyline: Polyline;
obj: THREE.Group;
constructor(options?: WallOptions);
setPolyline: (polyline: Polyline) => void;
clearPolyline: () => void;
lineBase?: THREE.Object3D;
lineTop?: THREE.Object3D;
updatePolyline: () => void;
nextFrame: (offset?: number) => void;
}
export {};