audio.cone readwrite


Get or set the listener cone, that controls how sound is attenuated based on the listener's direction

Example

--! luart-extensions import audio local console = require "console" local function printvector(v) -- Fancy formatting console.writecolor("brightwhite", "Listener "..v..(#v < 7 and ":\t\t" or " :\t")) local value = "{ " for axis, val in pairs(audio[v]) do value = value..axis.." = "..val..", " end value = value:gsub(", $", " }") console.writecolor("cyan", value.."\n") end -- Get default listener position, direction, veolocity, cone and cone printvector("position") printvector("direction") printvector("velocity") printvector("worldup") printvector("cone")