natiny.camera.create
local cam = natiny.camera.create()
Creates a new 3D camera.
Returns
| Type | Description |
|---|---|
number |
Camera handle |
Example
local cam = natiny.camera.create()
Notes
- Initial values are a 1-radian field of view (about 57.3°), near clip
0.1and far clip100. - Destroy the camera with
natiny.camera.destroywhen it is no longer needed.