/** * Draws a sphere with handles that drag its radius. * * ```javascript * const gizmo = new SphereGizmo(cameraComponent, layer); * gizmo.radius = 2; * gizmo.on('handle:move', () => { * collision.radius = gizmo.radius; * }); * ``` * * Relevant Engine API examples: * * - [Shape Gizmos](https://playcanvas.github.io/#/gizmos/shape) * * @category Gizmo */ export class SphereGizmo extends ShapeGizmo { /** * Creates a new SphereGizmo object. * * @param {CameraComponent} camera - The camera component. * @param {Layer} layer - The render layer. * @example * const gizmo = new SphereGizmo(camera, layer); */ constructor(camera: CameraComponent, layer: Layer); /** * The radius of the sphere. Defaults to 0.5. * * @type {number} */ radius: number; } import { ShapeGizmo } from './shape-gizmo.js'; import type { CameraComponent } from '../../../framework/components/camera/component.js'; import type { Layer } from '../../../scene/layer.js';