book_4_sparkGenerated
code_blocksInput

Description

The AudioSurface.Wood field is a member of the AudioSurface enumeration in the Sandbox namespace. It represents a surface type with acoustic properties characteristic of wood. This field is used to define how sound interacts with wooden surfaces, affecting how sound waves are absorbed, reflected, or transmitted.

Usage

Use the AudioSurface.Wood field when you need to specify that a surface in your game environment should have the acoustic properties of wood. This can be useful for simulating realistic sound behavior in environments where wooden surfaces are present, such as floors, walls, or furniture.

Example

// Example of using AudioSurface.Wood in a game object

public class WoodenFloor : GameObject
{
    public WoodenFloor()
    {
        // Assign the audio surface type to Wood
        this.AudioSurfaceType = AudioSurface.Wood;
    }
}