summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjussi2023-05-01 22:38:59 +0300
committerjussi2023-05-01 22:38:59 +0300
commitcf92c94097e1e8ce61a6bc73671be4ee5e229571 (patch)
treec0f544aa91d2589b8b1e2808503cb82a226ed22e /examples
parentf7a42189f054c8d81c24c8ea395d0818bb524c61 (diff)
downloadreilua-enhanced-cf92c94097e1e8ce61a6bc73671be4ee5e229571.tar.gz
reilua-enhanced-cf92c94097e1e8ce61a6bc73671be4ee5e229571.tar.bz2
reilua-enhanced-cf92c94097e1e8ce61a6bc73671be4ee5e229571.zip
Vector3RotateByAxisAngle was not connected.
Diffstat (limited to 'examples')
-rw-r--r--examples/resources/lib/vector3.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/resources/lib/vector3.lua b/examples/resources/lib/vector3.lua
index 2a25a5f..c2a7b10 100644
--- a/examples/resources/lib/vector3.lua
+++ b/examples/resources/lib/vector3.lua
@@ -45,6 +45,8 @@ Vector3.meta = {
function Vector3:new( x, y, z )
if type( x ) == "table" then
x, y, z = table.unpack( x )
+ elseif type( x ) == "nil" then
+ x, y, z = 0, 0, 0
end
local object = setmetatable( {}, Vector3.meta )