@@ -25,6 +25,10 @@ return {
m = {
type = 'Mat4',
description = 'A matrix to use the position of.'
+ },
+ q = {
+ type = 'Quat',
+ description = 'A quat to use the direction of.'
}
},
returns = {
@@ -45,7 +49,11 @@ return {
{
arguments = { 'm' },
returns = { 'v' }
- }
+ {
+ arguments = { 'q' },
+ returns = { 'v' }
related = {
'lovr.math.vec3',
@@ -27,6 +27,10 @@ return {
@@ -47,6 +51,10 @@ return {