The Soil
field is a member of the AudioSurface
enumeration in the Sandbox namespace. It represents a surface type with acoustic properties similar to soil, affecting how sound interacts with this surface type in the game environment.
The Soil
field is a member of the AudioSurface
enumeration in the Sandbox namespace. It represents a surface type with acoustic properties similar to soil, affecting how sound interacts with this surface type in the game environment.
Use the AudioSurface.Soil
field to specify that a particular surface in your game should have the acoustic properties of soil. This can be useful for simulating realistic sound behavior when interacting with soil surfaces, such as footsteps or object impacts.
// Example of using AudioSurface.Soil in a game object public class MyGameComponent : Component { public void SetSurfaceType(GameObject obj) { // Assuming obj has a method to set its audio surface type obj.SetAudioSurface(AudioSurface.Soil); } }