Rotation matrix - rotate any array of vectors around any axis.
- Set the variable Global.angle to an angle you want to rotate (in the code its simply set to be between -1 and 1 based on throttle input).
- Call subroutine RotateX / RotateY / RotateZ (depending on which axis you want to rotate around) to rotate every vector in the array Global.positions.
Controls
Toggle - Movement rotates cube on/off
Toggle - Movement speed (0% / 100%)
Toggle - Movement rotates cube on/off
Toggle - Movement speed (0% / 100%)
Toggle - Movement rotates cube on/off
Toggle - Movement speed (0% / 100%)
Toggle - Movement rotates cube on/off
Toggle - Movement speed (0% / 100%)
Toggle - Movement rotates cube on/off
Toggle - Movement speed (0% / 100%)
Snippet
Loading...