@three.ez/batched-mesh-extensions
Version:
Utility extension methods for BatchedMesh
9 lines • 517 B
TypeScript
import { BatchedMesh, Intersection, Raycaster } from 'three';
declare module 'three' {
interface BatchedMesh {
checkInstanceIntersection(raycaster: Raycaster, objectIndex: number, result: Intersection[]): void;
}
}
export declare function raycast(this: BatchedMesh, raycaster: Raycaster, result: Intersection[]): void;
export declare function checkInstanceIntersection(this: BatchedMesh, raycaster: Raycaster, instanceId: number, result: Intersection[]): void;
//# sourceMappingURL=Raycasting.d.ts.map