فهرست منبع

Set vec3 from direction of a quat

Josip Miskovic 2 سال پیش
والد
کامیت
35b40cd238
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      api/lovr/math/Vec3/set.lua

+ 8 - 0
api/lovr/math/Vec3/set.lua

@@ -21,6 +21,10 @@ return {
       type = 'Vec3',
       description = 'The vector to copy the values from.'
     },
+    q = {
+      type = 'Quat',
+      description = 'A quat to use the direction of.'
+    },
     m = {
       type = 'Mat4',
       description = 'The matrix to use the position of.'
@@ -41,6 +45,10 @@ return {
       arguments = { 'u' },
       returns = { 'v' }
     },
+    {
+      arguments = { 'q' },
+      returns = { 'v' }
+    },
     {
       arguments = { 'm' },
       returns = { 'v' }