Discuss this page on this page's Talk Page

sysVectorPolarOffset

See sysVectorPolarOffset at Xelerus

Syntax (sysVectorPolarOffset vector number number) → vector
Arguments vector: The origin of the new vector. Same as the systems origin if Nil.
number: The angle of the vector from 0 to 360. 0 is to the right.
number: The length of the vector in light seconds.
Returns vector: A new vector based on the origin and polar coordinates given.
Category system, vector operator
Description Makes a vector from the given origin and polar coordinates.

Essential if you want to use vectors of a certain length or direction.

Example

(sysVectorPolarOffset gplayership 0 10)

Returns a vector that points to a position 10 light seconds to the right of the player.

Return to Functions list