natiny.camera.create

Lua
local cam = natiny.camera.create()

Creates a new 3D camera.

Returns

Type Description
number Camera handle

Example

Lua
local cam = natiny.camera.create()

Notes

  • Initial values are a 1-radian field of view (about 57.3°), near clip 0.1 and far clip 100.
  • Destroy the camera with natiny.camera.destroy when it is no longer needed.