# TilesRenderer

class in `3d-tiles-renderer/babylonjs`, extends `TilesRendererBase`

```js
import { TilesRenderer } from '3d-tiles-renderer/babylonjs';
```

Babylon.js implementation of the 3D Tiles renderer. Manages tile loading, caching, traversal,
and scene management using the Babylon.js scene graph and camera APIs. Dispatches all events
defined by TilesRendererBase via Babylon.js Observables.

> **Warning:** Left-handed coordinate systems are not currently supported.

Example: Loading and rendering a tileset

```js
import { TilesRenderer } from '3d-tiles-renderer/babylonjs';

// engine, scene and camera are initialized here

const URL = 'https://raw.githubusercontent.com/NASA-AMMOS/3DTilesSampleData/master/msl-dingo-gap/0528_0260184_to_s64o256_colorize/0528_0260184_to_s64o256_colorize/0528_0260184_to_s64o256_colorize_tileset.json';
const tiles = new TilesRenderer( URL, scene );
tiles.group.rotation.x = Math.PI / 2;
scene.onBeforeRenderObservable.add( () => tiles.update() );
```

## Constructor

```js
new TilesRenderer( url: string, scene: Scene )
```

- `url`, `string`: URL of the root tileset JSON.
- `scene`, `Scene`: The Babylon.js scene to render tiles into.

## Properties

### .scene: Scene

The Babylon.js scene tiles are rendered into.

### .group: TransformNode

Root node that all loaded tile scenes are parented to.

### .checkCollisions: boolean

Whether to enable collision checking on loaded tile meshes.

## Methods

### .dispose

```js
.dispose(  ): void
```

Disposes the renderer, releasing all loaded tile content and the root transform node.
