-
-
Notifications
You must be signed in to change notification settings - Fork 2
Collision Sound Emitter
eisclimber edited this page Jan 18, 2024
·
1 revision
class in ExPresSXR.Interaction / Extends MonoBehavior
This Component plays a sound when a collision is detected on it's GameObject. Collisions tagged with 'Player' will be ignored. It can be used to play a sound when Interactables are dropped on the ground.
Note: The Component ignores any Collisions with objects that have the Player
-Tag)
-
float _initialSilenceDuration = 0.5f
: The duration after OnAwake() in seconds during which no sound is emitted. This can be used to prevent a sound being played at the start of the game while the physics still settles. Default Value:0.5f
.
-
AudioClip collisionSound
: The sound played when a collision is detected. -
AudioSource audioSource
: The AudioSource used to play the provided 'dropSound'. If none is provided the current GameObject is searched for an AudioSource-Component.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI