camera
3d · render · 4 properties · 3D
The view the scene is drawn from, following the node's global pose: look_at aims the 3D camera, zoom scales the 2D one in logical pixels per world unit. The last current camera of a kind, in tree order, drives that view.
In a scene, camera is the node key that applies it. A script reaches the same properties through node.camera.get() and node.camera.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
current | bool | true | Whether this camera drives the view; the last current one wins |
kind | enum | 3d | Which camera this node drives One of 3d, 2d. |
look_at | vec3 | [0,0,0] | World point the 3D camera looks at |
zoom | float | 60 | 2D zoom in logical pixels per world unit At least 1. |