AudioMesh

Edit

AudioMeshes are triangle meshes that define geometry for audio simulation. They are used for two types of audio effects:

Audio mesh triangles can have an AudioMaterial, controlling how it absorbs and reflects sound. For example, carpet will absorb more energy than concrete or metal.

Audio meshes can be translated, rotated, and scaled dynamically.

Constructors

lovr.audio.newAudioMeshCreate a new AudioMesh.
AudioMesh:cloneCreate a lightweight copy of the AudioMesh.

Methods

AudioMesh:cloneCreate a lightweight copy of the AudioMesh.
AudioMesh:getOrientationGet the orientation of the AudioMesh.
AudioMesh:getPoseGet the pose of the AudioMesh.
AudioMesh:getPositionGet the position of the AudioMesh.
AudioMesh:getScaleGet the scale of the AudioMesh.
AudioMesh:getTransformGet the transform of the AudioMesh.
AudioMesh:isEnabledCheck if the AudioMesh is enabled.
AudioMesh:setEnabledEnable or disable the AudioMesh.
AudioMesh:setOrientationSet the orientation of the AudioMesh.
AudioMesh:setPoseSet the pose of the AudioMesh.
AudioMesh:setPositionSet the position of the AudioMesh.
AudioMesh:setScaleSet the scale of the AudioMesh.
AudioMesh:setTransformSet the transform of the AudioMesh.
Object:releaseImmediately release the Lua reference to an object.
Object:typeGet the type name of the object.

See also