vector rotate
Details
Kode wheel segment | Math/Vector |
Style | Math |
Modifiers | axis |
Primarily WHEN/DO | DO |
Pre-made brains that use it | Unknown |
Math> Vector > vector rotate
Description
This tile is a Math tile. It rotates a vector by its (or a specified) axis, at a specified angle.
Example Code
WHEN DO [vectorvar: vector1][=][vector rotate][vectorvar:vector1][axis][IWP:door][position][20]
The number is the degrees of rotation.
Modifiers
axis: Pair this tile with an object position or vector to specify the axis at which the vector will rotate. Otherwise it will use its own axis as a point of rotation.