Difference between revisions of "Line of sight"
Jump to navigation
Jump to search
m (Line of Sight moved to Line of sight: Fix capitalization.) |
m |
||
Line 1: | Line 1: | ||
One of the more popular (simple) methods of determining whether something in the game world is [[visible|visibility]] (or targetable) is to input the x,y coords for the target and the player and then walk along a line between them. At each step on the line, the game checks to see if anything is in the world at these coords that would prevent a player's sight (like a wall). | One of the more popular (simple) methods of determining whether something in the game world is [[visible|visibility]] (or targetable) is to input the x,y coords for the target and the player and then walk along a line between them. At each step on the line, the game checks to see if anything is in the world at these coords that would prevent a player's sight (like a wall). | ||
Line 7: | Line 6: | ||
* [[Digital lines]] | * [[Digital lines]] | ||
[[Category: | [[Category:Articles]] |
Revision as of 15:53, 22 March 2009
One of the more popular (simple) methods of determining whether something in the game world is visibility (or targetable) is to input the x,y coords for the target and the player and then walk along a line between them. At each step on the line, the game checks to see if anything is in the world at these coords that would prevent a player's sight (like a wall).
There are a couple of articles describing how to do line of sight: