Api Sandbox CollisionSoundSystem
class

CollisionSoundSystem

public sealed class CollisionSoundSystem : GameObjectSystem<T>

This system exists to collect pending collision sounds and filter them into a unique set, to avoid unnesssary sounds playing, when they're going to be making the same sound anyway.

Constructors

CollisionSoundSystem(Scene scene)

Methods

Void RegisterCollision(Collision collision)

Register this physics collision with the sound system

Void AddShapeCollision(PhysicsShape shape, Surface surface, Vector3 position, Single speed, Boolean networked)

Add a collision sound for this shape

Void AddShapeCollision(PhysicsShape shape, Surface surface, PhysicsContact contact, Boolean networked)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.CollisionSoundSystem