Variable: Transform
constTransform:Component<{orientation: {default: [number,number,number,number];type:Vec4; };parent: {default:any;type:Entity; };position: {default: [number,number,number];type:Vec3; };scale: {default: [number,number,number];type:Vec3; }; }>
Defined in: packages/core/src/transform/transform.ts:34
3D transform component that binds an entity to a Three.js Object3D.
Remarks
- The TransformSystem wires Object3D.position/quaternion/scale to component views for zero‑copy updates and parenting.
- Default values are
NaNso an existing Object3D keeps its initial transform unless a value is explicitly written by code or GLXF. - Set
parentto reparent under another entity. When unset, entities are automatically parented under the active level root (or scene if persistent).