[Bf-committers] Game engine and samples

Alexander Ewering blender at instinctive.de
Tue Dec 28 11:52:38 CET 2004


Kester,

I think I found the solution to the coordinate transform problem. Found
a comment that says that the Sound object's position is transformed into
the local coordinates of the listener. So I guess doing sqrt(x*x+y*y+z*z)
(where x/y/z are those coordinates) is enough for getting the distance.

Works well now and independantly of the orientation.

Problem solved I guess :)

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de


More information about the Bf-committers mailing list