Skip to content

@relu-interactives/spatial-ecs


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

Type Alias: Vec3

ts
type Vec3 = 
  | THREE.Vector3
  | {
  x: number;
  y: number;
  z: number;
};

Defined in: types.ts:144

Loose 3D vector accepted by raycast and other spatial helpers. Either a live THREE.Vector3 or a plain { x, y, z } object — both are normalized internally before use.