AudioMesh
EditAudioMeshes are triangle meshes that define geometry for audio simulation. They are used for two types of audio effects:
- Reverb, from sound reflecting off of solid objects in the scene.
- Occlusion, where sounds will be quieter when they're behind walls.
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.newAudioMesh | Create a new AudioMesh. |
| AudioMesh:clone | Create a lightweight copy of the AudioMesh. |
Methods
| AudioMesh:clone | Create a lightweight copy of the AudioMesh. |
| AudioMesh:getOrientation | Get the orientation of the AudioMesh. |
| AudioMesh:getPose | Get the pose of the AudioMesh. |
| AudioMesh:getPosition | Get the position of the AudioMesh. |
| AudioMesh:getScale | Get the scale of the AudioMesh. |
| AudioMesh:getTransform | Get the transform of the AudioMesh. |
| AudioMesh:isEnabled | Check if the AudioMesh is enabled. |
| AudioMesh:setEnabled | Enable or disable the AudioMesh. |
| AudioMesh:setOrientation | Set the orientation of the AudioMesh. |
| AudioMesh:setPose | Set the pose of the AudioMesh. |
| AudioMesh:setPosition | Set the position of the AudioMesh. |
| AudioMesh:setScale | Set the scale of the AudioMesh. |
| AudioMesh:setTransform | Set the transform of the AudioMesh. |
| Object:release | Immediately release the Lua reference to an object. |
| Object:type | Get the type name of the object. |