Skip to main content

DOM3DElement

A component that renders a 3D DOM element.

Definition

function DOM3DElement(
__namedParameters: PropsWithChildren<{
worldPosition: Vec3;
anchor?: Anchor;
scaleFactor?: number;
}>,
): Element | null;

Properties

worldPosition

Vec3

The world position of the DOM element.

anchor

Anchor

The anchor of the DOM element.

scaleFactor

number

The scale factor of the DOM element.

Returns

Element | null

The DOM element.

Examples

Loading samples...