Skip to content

Commit

Permalink
LOD: Add removeLevel(). (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Sep 24, 2024
1 parent 3272dd3 commit e6fdf2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/three/src/objects/LOD.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ export class LOD<TEventMap extends Object3DEventMap = Object3DEventMap> extends
*/
addLevel(object: Object3D, distance?: number, hysteresis?: number): this;

/**
* Removes an existing level, based on the distance from the camera. Returns `true` when the level has been removed.
* Otherwise `false`.
* @param distance Distance of the level to delete.
*/
removeLabel(distance: number): boolean;

/**
* Get the currently active {@link LOD} level
* @remarks
Expand Down

0 comments on commit e6fdf2f

Please sign in to comment.