Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / Vec3

Type Alias: Vec3

ts
type Vec3 = {
  x: number;
  y: number;
  z: number;
};

Defined in: components/Transform.ts:10

Plain XYZ vector. All ECS transform fields use this shape rather than THREE.Vector3 so they save cleanly with the project.

Properties

PropertyTypeDescriptionDefined in
xnumberX component.components/Transform.ts:12
ynumberY component.components/Transform.ts:14
znumberZ component.components/Transform.ts:16