Description
The Gravel
field is a member of the AudioSurface
enumeration in the Sandbox API. It represents a surface type with acoustic properties characteristic of gravel. This affects how sound interacts with the surface, such as footsteps or impacts, providing a realistic audio experience in a game environment.
Usage
Use the AudioSurface.Gravel
field when you need to specify that a particular surface in your game should have the acoustic properties of gravel. This can be useful for setting up audio effects for footsteps, collisions, or other interactions with gravel surfaces.
Example
// Example of using AudioSurface.Gravel
public class GravelSurfaceComponent : Component
{
public void ApplySurfaceProperties()
{
// Assuming there's a method to set the audio surface type
SetAudioSurfaceType(AudioSurface.Gravel);
}
}