Create components for a generic Object3D entity. Returns an object suitable for spreading into spawn().
Optional
const obj = ecs.spawn({ ...createObject3DComponents(myObject, { x: 0, y: 0, z: 0 }),}); Copy
const obj = ecs.spawn({ ...createObject3DComponents(myObject, { x: 0, y: 0, z: 0 }),});
Create components for a generic Object3D entity. Returns an object suitable for spreading into spawn().