Home
last modified time | relevance | path

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

/NW4C-2.0.3/sources/libraries/snd/
Dsnd_Sound3DCalculator.cpp159 nw::math::VEC3 relPos; in CalcPitch() local
160 nw::math::VEC3Sub( &relPos, &actorParam.position, &listener.GetPosition() ); in CalcPitch()
161 const f32 distance = nw::math::VEC3Len( &relPos ); in CalcPitch()
163 relPos /= distance; in CalcPitch()
171 actorVelocity = - nw::math::VEC3Dot( &relPos, &actorParam.velocity ); in CalcPitch()
172 listenerVelocity = - nw::math::VEC3Dot( &relPos, &listener.GetVelocity() ); in CalcPitch()