Skip to content

Commit

Permalink
BatchedMesh: Add support for raycasting (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Nov 18, 2023
1 parent 8f5bc7d commit e9633b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions types/three/examples/jsm/objects/BatchedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
setVisibleAt(geometryId: number, value: boolean): this;
getVisibleAt(geometryId: number): boolean;

raycast(): void; // no-op

copy(source: this): this;

dispose(): this;
Expand Down
1 change: 1 addition & 0 deletions types/three/src/core/Raycaster.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface Intersection<TIntersected extends Object3D = Object3D> {
/** The index number of the instance where the ray intersects the {@link THREE.InstancedMesh | InstancedMesh } */
instanceId?: number | undefined;
pointOnLine?: Vector3;
batchId?: number;
}

export interface RaycasterParameters {
Expand Down

0 comments on commit e9633b8

Please sign in to comment.