Empty
An invisible THREE.Group. Useful as a parent / pivot / spawn anchor.
ts
import { Behaviour } from "@relu-interactives/spatial-ecs";
export default class SpawnAnchor extends Behaviour {
init() {
const objects = this.world.getObjectManagementSystem();
objects?.requestCreate("empty", {
name: "SpawnPoint",
transform: { position: { x: 0, y: 0, z: -3 } },
});
}
}Payload
| Field | Type | Default | Description |
|---|---|---|---|
name | string | "Empty" | Display name. |
transform | TransformData | identity | Position / rotation (radians) / scale. |
parentId | EntityId | null | null | Optional parent entity. |
Components attached
Transform, Object3DRef, Name, EntityType, ParentId, Selectable.
(No mesh/material — Empties are pure transform anchors.)

