direction.lua 442 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Get the direction of the quaternion.',
  3. description = [[
  4. Creates a new temporary vec3 facing the forward direction, rotates it by this quaternion, and
  5. returns the vector.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. v = {
  10. type = 'Vec3',
  11. description = 'The direction vector.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'v' }
  18. }
  19. },
  20. related = {
  21. 'Mat4:lookAt'
  22. }
  23. }