Sphere
A radius 0.5 THREE.SphereGeometry (24 width × 24 height segments) with a default white MeshStandardMaterial.
ts
import { Behaviour } from "@relu-interactives/spatial-ecs";
export default class SpawnSphere extends Behaviour {
init() {
const objects = this.world.getObjectManagementSystem();
objects?.requestCreate("sphere", {
name: "Ball",
transform: { position: { x: 0, y: 0.5, z: 0 } },
});
}
}Payload
| Field | Type | Default | Description |
|---|---|---|---|
name | string | "Sphere" | Display name. |
transform | TransformData | identity | Position / rotation (radians) / scale. |
parentId | EntityId | null | null | Optional parent entity. |
Components attached
Transform, Object3DRef, Name, EntityType, ParentId, Selectable, Mesh, Material, MeshGeometry.

