Coordinates: Difference between revisions
Jump to navigation
Jump to search
Note:'Global' or 'absolute' coordinates refer to the coordinates of the world. All other coordinate systems are 'local' to an entity.
Tip:There can be multiple origins within the same entity: its own origin, the origin of its model, etc. Each origin defines its own local coordinate system relative to its parent.
TomEdwards (talk | contribs) (corrections from VPhysics comments) |
No edit summary |
||
| Line 1: | Line 1: | ||
<div style="float:right | <div style="background:#262626;float:right;">[[Image:Coordinates.png|A two-dimensional coordinate system]]</div> | ||
'''Coordinates''' are used to describe locations. Each one is a group of "ordinate" numbers which taken together can be plotted on a grid, one ordinate per dimension. | '''Coordinates''' are used to describe locations. Each one is a group of "ordinate" numbers which taken together can be plotted on a grid, one ordinate per dimension. | ||
| Line 18: | Line 18: | ||
* [[Wikipedia:Coordinate system]] | * [[Wikipedia:Coordinate system]] | ||
* <code>[[GetAbsOrigin()]]</code> | |||
* [[$origin]] and [[$autocenter]] (for [[model]]s) | * [[$origin]] and [[$autocenter]] (for [[model]]s) | ||
[[Category:Glossary]] | [[Category:Glossary]] | ||
Revision as of 11:47, 29 June 2011
Coordinates are used to describe locations. Each one is a group of "ordinate" numbers which taken together can be plotted on a grid, one ordinate per dimension.
Coordinates in Source are (X,Y,Z), where X is forward/East, Y is left/North, and Z is up. (0,0,1) is a point one unit directly above the origin.
Coordinates are often stored alongside a set of rotation angles.
Origin
The origin of an object is the point at which its local coordinates are (0,0,0). It is the mathematical centre from which local coordinates are relative. It is rarely the centre of the visible object, however.
