direction.lua 378 B

123456789101112131415161718
  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. {
  10. name = 'v',
  11. type = 'Vec3',
  12. description = 'The direction vector.'
  13. }
  14. },
  15. related = {
  16. 'Mat4:lookAt'
  17. }
  18. }