Координаты

From Valve Developer Community
< Ru
Jump to navigation Jump to search
English (en)Deutsch (de)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)
A two-dimensional coordinate system

Координаты используются для описания местоположений в пространстве. Each one is a group of "ordinate" numbers which taken together can be plotted on a grid, one ordinate per dimension. используются для описания местоположений. Представляет собой группу "ординатных" чисел, каждое из которых определяет соответствующее значение в каждом измерении.

Coordinates in Source являются (X,Y,Z), где X - направление вперед/на Восток, Y - влево/на Север, а Z - вверх. (0,0,1) точка на одну единицу(en) выше начала координат.

В Source применяется правая система координат.

Координаты часто хранятся вместе с набором углов(en) поворота.

Note.pngПримечание:'Global' or 'absolute' coordinates refer to the coordinates of the world. All other coordinate systems are 'local' to an entity.
Note.pngПримечание:In world, +X is east and +Y is north. In MDLs, +X is north and +Y is west.
Note.pngПримечание:The compass shown when the nav_show_compass console variable is toggled shows x axis is east and y axis is south. This doesn't make any sense, because in reality, turning left from north will turn to west instead of east.

Точка отсчёта (Начало координат)

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.

Tip.pngСовет: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.

Смотреть также