heading to position transform angle in C++

Started by
29 comments, last by rip-off 11 years, 11 months ago
Ok, now what you are saying is making a little more sense to me. You have an object that has two logical sound sources, one at the front and one at the back. You are trying to take the position of the object's origin, and do the appropriate maths to discover the world-space co-ordinates of these sound sources.

The remaining question is what is pPsi? It is the angle around the Y axis perhaps? I assume it is in radians? Do you derive this angle from a heading vector, or do you use this angle to move the object? In the former case, try adding the vector that is V * L + P, where P is the position of the object, V is the normalised heading vector and L is the distance from the origin to the sound emitter. In the latter case, your code to move the object is similar to the code needed for this.

This topic is closed to new replies.

Advertisement