Cylinder
A THREE.CylinderGeometry with radius 0.5, height 1, and 20 radial segments.
ts
import { Behaviour } from "@relu-interactives/spatial-ecs";
export default class SpawnCylinder extends Behaviour {
init() {
const objects = this.world.getObjectManagementSystem();
objects?.requestCreate("cylinder", {
name: "Pillar",
transform: { position: { x: 0, y: 0.5, z: 0 } },
});
}
}Payload
| Field | Type | Default | Description |
|---|---|---|---|
name | string | "Cylinder" | 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.

