@motion-script/core / OrthographicCamera3D
Interface: OrthographicCamera3D
Defined in: render3d/camera.ts:34
An orthographic camera — parallel rays, so size is independent of distance. For isometric views, technical diagrams and 2.5D layouts.
frustumHeight is the ergonomic control: it sets the visible world height and derives the width from the node's aspect ratio. Set the four explicit edges instead only when you need an asymmetric frustum.
Extends
Properties
bottom?
optionalbottom?:number
Defined in: render3d/camera.ts:44
castShadow?
optionalcastShadow?:boolean
Defined in: render3d/transform.ts:32
Inherited from
far?
optionalfar?:number
Defined in: render3d/camera.ts:39
frustumHeight?
optionalfrustumHeight?:number
Defined in: render3d/camera.ts:37
Visible world-space height; width follows the node's aspect. Default 10.
key?
optionalkey?:string
Defined in: render3d/transform.ts:48
Explicit reconciler identity.
By default the renderer caches one live 3D object per op, keyed by the op's
structural path — its group() nesting plus its index within that
group. That is stable for a builder that emits the same ops in the same
order every frame, which is the normal case.
Set key when your builder emits ops conditionally, so a slot's meaning
shifts between frames (if (t > 2) g.box(...)). Without it, inserting an
op renumbers every later slot and forces the tail of the cache to rebuild.
Inherited from
left?
optionalleft?:number
Defined in: render3d/camera.ts:41
Explicit frustum edges. Override frustumHeight when all four are set.
lookAt?
optionallookAt?:Vector3Input
Defined in: render3d/transform.ts:29
World-space point to orient toward, applied after position. Wins over both rotation and quaternion.
Inherited from
near?
optionalnear?:number
Defined in: render3d/camera.ts:38
params?
optionalparams?:Record<string,unknown>
Defined in: render3d/geometry.ts:14
Inherited from
position?
optionalposition?:Vector3Input
Defined in: render3d/transform.ts:12
Position in the parent's local space. Default origin.
Inherited from
quaternion?
optionalquaternion?:Quaternion
Defined in: render3d/transform.ts:22
Rotation as a unit quaternion. Wins over rotation — use it (with
slerpQuaternion) for tumbles where Euler interpolation would gimbal.
Inherited from
receiveShadow?
optionalreceiveShadow?:boolean
Defined in: render3d/transform.ts:33
Inherited from
renderOrder?
optionalrenderOrder?:number
Defined in: render3d/transform.ts:35
Draw-order override, for tuning transparent sorting.
Inherited from
right?
optionalright?:number
Defined in: render3d/camera.ts:42
rotation?
optionalrotation?:Vector3Input|Euler3
Defined in: render3d/transform.ts:17
Euler rotation in degrees, applied in order (default "XYZ").
Ignored when quaternion is set.
Inherited from
scale?
optionalscale?:Vector3Input
Defined in: render3d/transform.ts:24
Per-axis scale; a scalar scales uniformly. Default 1.
Inherited from
top?
optionaltop?:number
Defined in: render3d/camera.ts:43
type
type:
"orthographic"
Defined in: render3d/camera.ts:35
visible?
optionalvisible?:boolean
Defined in: render3d/transform.ts:31
Hide without removing (keeps the cached object alive). Default true.
Inherited from
zoom?
optionalzoom?:number
Defined in: render3d/camera.ts:45