Exemplo n.º 1
0
 public static void SetListenerLocation(Transform transform)
 {
     Instance.studioSystem.setListenerAttributes(0, transform.To3DAttributes());
 }
Exemplo n.º 2
0
        public static FMOD.ATTRIBUTES_3D To3DAttributes(Transform transform, Rigidbody rigidbody = null)
        {
            FMOD.ATTRIBUTES_3D attributes = transform.To3DAttributes();

            if (rigidbody)
            {
                attributes.velocity = rigidbody.velocity.ToFMODVector();
            }

            return attributes;
        }