Home
last modified time | relevance | path

Searched refs:relPos (Results 1 – 1 of 1) sorted by relevance

/NW4C-1.3.3/sources/libraries/snd/
Dsnd_Sound3DCalculator.cpp157 nw::math::VEC3 relPos; in CalcPitch() local
158 nw::math::VEC3Sub( &relPos, &actorParam.position, &listener.GetPosition() ); in CalcPitch()
159 const f32 distance = nw::math::VEC3Len( &relPos ); in CalcPitch()
161 relPos /= distance; in CalcPitch()
169 actorVelocity = - nw::math::VEC3Dot( &relPos, &actorParam.velocity ); in CalcPitch()
170 listenerVelocity = - nw::math::VEC3Dot( &relPos, &listener.GetVelocity() ); in CalcPitch()