Good evening all

I am trying to figure out how to creat audio paths in FMOD studio 1.10.11 for a multi-instrument event for bullet whiz-by’s. there’s documentation for it for Wwise, but not for FMOD, however folks at GDC last weekend were saying it could be a parameter setup question. And that the calculation for it was a Dot Product formula.

here is the concept I’ve been given:

The idea is that you would create four paths (left->right, right->left, front->back, back->front) and choose which one to play based on the relative direction of the listener forward and the bullet direction. To pick a direction:

let:

f = normalized listener forward vector

d = normalized bullet direction vector

u = normalized up vector

x = vector cross product operation

. = vector dot product operation

A = f . d -> front or back: > 0 means it is moving back to front, < 0 means front to back

B = (f x u) . d -> left or right: > 0 will be right->left and < 0 will be left->;right, or vice versa depending on whether you are left- or right-handed cartesian (just flip the sign if it sounds wrong)

Run both of these calculations, that will give you two floating point values. Take whichever one is largest, then look at its sign to determine the final result. Code would look something like this:

A = dot(f, d)

B = dot(cross(f, u), d)

if (abs(A) > abs(B))

```
if (A > 0) return FRONT else return BACK
```

else

```
if (B > 0) return LEFT else return RIGHT
```

Just not sure how to set this up in FMOD