Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.
Here is a code snippet of how to do a ray to plane intersection test in Lua :
function ray_plane_intersect(ray_pos, ray_dir, plane_pos, plane_n)
local px = plane_pos.x
local py = plane_pos.y
local pz = plane_pos.z
local nx = plane_n.x
local ny = plane_n.y
local nz = plane_n.z
local ox = ray_pos.x
local oy = ray_po...
Read More