Category:LSL Vector/direction: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{LSL Subtype Category|direction|base=vector|description=A direction vector simply points in a specific direction. For example <1,0,0> points East.}} To get a direction vecto..." |
m Replaced <source> with <syntaxhighlight> |
||
| Line 3: | Line 3: | ||
To get a direction vector, simply take the desired target position and subtract the starting position. | To get a direction vector, simply take the desired target position and subtract the starting position. | ||
< | <syntaxhighlight lang="lsl2"> | ||
vector start; | vector start; | ||
vector end; | vector end; | ||
vector direction = end - start; | vector direction = end - start; | ||
</ | </syntaxhighlight> | ||
Latest revision as of 14:21, 28 January 2023
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
The functions and constants in this category all take or return a direction parameter. Events in this category expose a direction parameter.
A direction vector simply points in a specific direction. For example <1,0,0> points East.
To get a direction vector, simply take the desired target position and subtract the starting position.
vector start;
vector end;
vector direction = end - start;
Pages in category "LSL Vector/direction"
The following 2 pages are in this category, out of 2 total.