0
0

Hello,

We are trying to do some 3D audio on the iphone, and we’re getting stuck with the forward direction vector: we don’t know how to get the correct value for it.

When the listener orientation is only moving on the X/Z axis (= looking horizontal, y=0) the forward vector is simple: {0, 1, 0 }.

But when the listener orientation start moving up (pitch up/down), we can’t get a good value of the forward vector :/

Can someone help us with that?

Thanks!

  • You must to post comments
0
0

Google vector transformation…

where the initial facing vx,vy,vz depends on the initial condition of your <player in the> 3d word. Mine is 1,0,0 (facing west)

You transform the initial vector with a rotation matrix that matches your game movement system. you get the resulting vector and use that.

Same method for the up vector.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.