nngn
Loading...
Searching...
No Matches
camera.lua File Reference

Functions

function set (c)
 
function set_max_vel (v)
 
function set_rot_axes (a0, a1)
 
function reset (zoom)
 
function set_perspective (p)
 
function set_follow (e)
 
function move (key, press, mods, keys)
 
function rotate (x, y)
 

Variables

 nngn_math< const > = require "nngn.lib.math"
 
 utils< const > = require "nngn.lib.utils"
 
 PERSP_ANGLE< const > = math.rad(60)
 
 PERSP_ANGLE_SIN< const > = math.sin(PERSP_ANGLE)
 
 PERSP_ANGLE_COS< const > = math.cos(PERSP_ANGLE)
 
 MAX_VEL = 256
 
 ROT_AXIS0 = 1
 
 ROT_AXIS1 = 3
 
 FOLLOW = nil
 
 CAMERA = nngn:camera()
 
 ROT_VEL = ROT_VEL
 
 ZOOM_VEL = ZOOM_VEL
 
 get = get
 
 set = set
 
 set_max_vel = set_max_vel
 
 set_rot_axes = set_rot_axes
 
 reset = reset
 
 set_perspective = set_perspective
 
 toggle_perspective = toggle_perspective
 
 set_fov_z = set_fov_z
 
 following = following
 
 toggle_follow = toggle_follow
 
 set_follow = set_follow
 
 move = move
 
 rotate = rotate
 
 remove_limits = remove_limits
 

Function Documentation

◆ move()

function move ( key  ,
press  ,
mods  ,
keys   
)

◆ reset()

function reset ( zoom  )

◆ rotate()

function rotate ( ,
 
)

◆ set()

function set ( c  )

◆ set_follow()

function set_follow ( e  )

◆ set_max_vel()

function set_max_vel ( v  )

◆ set_perspective()

function set_perspective ( p  )

◆ set_rot_axes()

function set_rot_axes ( a0  ,
a1   
)

Variable Documentation

◆ CAMERA

CAMERA = nngn:camera()

◆ FOLLOW

FOLLOW = nil

◆ following

following = following

◆ get

get = get

◆ MAX_VEL

MAX_VEL = 256

◆ move

move = move

◆ nngn_math< const >

nngn_math< const > = require "nngn.lib.math"

◆ PERSP_ANGLE< const >

PERSP_ANGLE< const > = math.rad(60)

◆ PERSP_ANGLE_COS< const >

PERSP_ANGLE_COS< const > = math.cos(PERSP_ANGLE)

◆ PERSP_ANGLE_SIN< const >

PERSP_ANGLE_SIN< const > = math.sin(PERSP_ANGLE)

◆ remove_limits

function remove_limits = remove_limits

◆ reset

reset = reset

◆ ROT_AXIS0

ROT_AXIS0 = 1

◆ ROT_AXIS1

ROT_AXIS1 = 3

◆ ROT_VEL

ROT_VEL = ROT_VEL

◆ rotate

rotate = rotate

◆ set

set = set

◆ set_follow

set_follow = set_follow

◆ set_fov_z

function set_fov_z = set_fov_z

◆ set_max_vel

set_max_vel = set_max_vel

◆ set_perspective

set_perspective = set_perspective

◆ set_rot_axes

set_rot_axes = set_rot_axes

◆ toggle_follow

toggle_follow = toggle_follow

◆ toggle_perspective

function toggle_perspective = toggle_perspective

◆ utils< const >

utils< const > = require "nngn.lib.utils"

◆ ZOOM_VEL

ZOOM_VEL = ZOOM_VEL