Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

Camera

An immutable camera, for image export or the Viewport. Positions are world meters, which are model coordinates. JSON.stringify writes its fields with points and vectors as [x, y, z] arrays.

new Camera(eye, target, options?): Camera

Creates a camera at eye looking at target.

Point3dLike

Point3dLike

CameraOptions

Camera

readonly eye: Point3d

Camera position.


readonly fieldOfView: number

Vertical field of view in degrees.


readonly perspective: boolean

true for a perspective camera and false for a parallel projection.


readonly target: Point3d

The point the camera looks at.


readonly up: Vector3d

Up direction.