@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / TransformData
Type Alias: TransformData
ts
type TransformData = {
position?: Partial<Vec3>;
rotation?: Partial<Vec3>;
scale?: Partial<Vec3>;
};Defined in: components/Transform.ts:20
Optional initial values passed to TransformComponent. Missing axes default to 0 for position/rotation and 1 for scale.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
position? | Partial<Vec3> | Initial position (defaults to { 0, 0, 0 }). | components/Transform.ts:22 |
rotation? | Partial<Vec3> | Initial rotation in radians (defaults to { 0, 0, 0 }). | components/Transform.ts:24 |
scale? | Partial<Vec3> | Initial scale (defaults to { 1, 1, 1 }). | components/Transform.ts:26 |

