UNPKG

@playcanvas/web-components

Version:

Web Components for the PlayCanvas Engine

57 lines (56 loc) 1.84 kB
import { CollisionComponent, Quat, Vec3 } from 'playcanvas'; import { ComponentElement } from './component'; /** * The CollisionComponentElement interface provides properties and methods for manipulating * {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-collision/ | `<pc-collision>`} elements. * The CollisionComponentElement interface also inherits the properties and methods of the * {@link HTMLElement} interface. * * @category Components */ declare class CollisionComponentElement extends ComponentElement { private _angularOffset; private _axis; private _convexHull; private _halfExtents; private _height; private _linearOffset; private _radius; private _type; /** @ignore */ constructor(); getInitialComponentData(): { axis: number; angularOffset: Quat; convexHull: boolean; halfExtents: Vec3; height: number; linearOffset: Vec3; radius: number; type: string; }; /** * Gets the underlying PlayCanvas collision component. * @returns The collision component. */ get component(): CollisionComponent | null; set angularOffset(value: Quat); get angularOffset(): Quat; set axis(value: number); get axis(): number; set convexHull(value: boolean); get convexHull(): boolean; set halfExtents(value: Vec3); get halfExtents(): Vec3; set height(value: number); get height(): number; set linearOffset(value: Vec3); get linearOffset(): Vec3; set radius(value: number); get radius(): number; set type(value: string); get type(): string; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: string, newValue: string): void; } export { CollisionComponentElement };