MotionScript

@motion-script/core


@motion-script/core / Vector3Input

Type Alias: Vector3Input

Vector3Input = Vector3 | readonly [number, number, number] | number

Defined in: render3d/vector3.ts:22

Loose forms accepted anywhere a Vector3 is expected:

  • an object — { x: 1, y: 2, z: 3 }
  • a 3-tuple — [1, 2, 3]
  • a scalar, broadcast to all three axes — 0 means the origin, 2 means { x: 2, y: 2, z: 2 } (handy for uniform scale and lookAt: 0)