Description
The AudioSurface.Rock
field is a member of the AudioSurface
enumeration in the Sandbox namespace. It represents a surface type with acoustic properties similar to rock. This field is used to define how sound interacts with rock surfaces in the game environment, affecting how sound waves are reflected or absorbed.
Usage
Use AudioSurface.Rock
when you need to specify that a surface in your game should have the acoustic properties of rock. This can be useful for simulating realistic sound behavior in environments with rocky surfaces.
Example
// Example of using AudioSurface.Rock
public class RockSurfaceComponent : Component
{
public void SetSurfaceType()
{
// Set the surface type to Rock
var surfaceType = AudioSurface.Rock;
// Use surfaceType in your logic
}
}