Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-15-10, 05:10 AM   #1
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
What is the FOV of WoW?

Hi all!

I'm making a compass addon with a POI feature that makes little dots which mark the directions to the corresponding POI's. When that dot is in the center of your screen your facing the POI directly, and when you turn a bit to the right the dot moves to the left(which is logical, if you are facing a house in WoW and turn to the right the house moves to the left) of the screen. What I want is when the POI goes off-screen thanks to the FOV I want the dot also go off-screen. Now to do this I need to know the FOV of WoW, hence my question.

Some extra info:
I know the distance to the POI in yards.
I know the angle "that would be needed to turn to the right to correctly face the POI", example: a house is in front of you and you turn 90 degrees to the right the angle is -90.
The angle goes from -180 to 180 where 0 is perfectly facing the POI.
I place the dots on the screen like this, which assumes a FOV of 180 degrees:
Code:
dot:SetPoint("TOP", UIParent, dot.angle/90 * -GetScreenWidth(), 0)
I hope you guys can help me!
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » What is the FOV of WoW?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off