new TargetOrbitControlMesh(orbitControls, camera3D, layerManager)
Constructor to initialize the camera controller and related UI elements. Sets up the orbit controls, camera mesh, and initializes the UI for interaction. Adds an event listener on the orbit controls to update the mesh when changes occur.
Parameters:
Name | Type | Description |
---|---|---|
orbitControls | OrbitControls | The orbit controls used to manipulate the camera. |
camera3D | Camera | The 3D camera being controlled. |
layerManager | LayerManager | A manager handling different layers in the scene. |
- Source