nngn
|
Functions | |
local function | set (c) |
local function | set_max_vel (v) |
local function | set_rot_axes (a0, a1) |
local function | reset (zoom) |
local function | set_perspective (p) |
local function | set_follow (e) |
local function | move (key, press, mods, keys) |
local function | rotate (x, y) |
Variables | |
local | nngn_math< const > = require "nngn.lib.math" |
local | utils< const > = require "nngn.lib.utils" |
local | PERSP_ANGLE< const > = math.rad(60) |
local | PERSP_ANGLE_SIN< const > = math.sin(PERSP_ANGLE) |
local | PERSP_ANGLE_COS< const > = math.cos(PERSP_ANGLE) |
local | MAX_VEL = 256 |
local | ROT_AXIS0 = 1 |
local | ROT_AXIS1 = 3 |
local | FOLLOW = nil |
local | 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 | |
local function move | ( | key | , |
press | , | ||
mods | , | ||
keys | ) |
local function reset | ( | zoom | ) |
local function rotate | ( | x | , |
y | ) |
local function set | ( | c | ) |
local function set_follow | ( | e | ) |
local function set_max_vel | ( | v | ) |
local function set_perspective | ( | p | ) |
local function set_rot_axes | ( | a0 | , |
a1 | ) |
local CAMERA = nngn:camera() |
local FOLLOW = nil |
local function following = following |
local function get = get |
MAX_VEL = 256 |
move = move |
local PERSP_ANGLE< const > = math.rad(60) |
local PERSP_ANGLE_COS< const > = math.cos(PERSP_ANGLE) |
local PERSP_ANGLE_SIN< const > = math.sin(PERSP_ANGLE) |
local function remove_limits = remove_limits |
reset = reset |
local ROT_AXIS0 = 1 |
local ROT_AXIS1 = 3 |
ROT_VEL = ROT_VEL |
rotate = rotate |
set = set |
set_follow = set_follow |
local function set_fov_z = set_fov_z |
set_max_vel = set_max_vel |
set_perspective = set_perspective |
set_rot_axes = set_rot_axes |
local function toggle_follow = toggle_follow |
local function toggle_perspective = toggle_perspective |
ZOOM_VEL = ZOOM_VEL |