Vector3RotateByAxisAngle was not connected.

This commit is contained in:
jussi
2023-05-01 22:38:59 +03:00
parent f7a42189f0
commit cf92c94097
4 changed files with 5 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ Detailed changes:
- REMOVED: GetTextureSource - REMOVED: GetTextureSource
- REMOVED: UnloadRenderTexture - REMOVED: UnloadRenderTexture
- ADDED: GetTextureType - ADDED: GetTextureType
- FIXED: Vector3RotateByAxisAngle was not connected.
------------------------------------------------------------------------ ------------------------------------------------------------------------
Release: ReiLua version 0.4.0 Using Raylib 4.2 Release: ReiLua version 0.4.0 Using Raylib 4.2

View File

@@ -45,6 +45,8 @@ Vector3.meta = {
function Vector3:new( x, y, z ) function Vector3:new( x, y, z )
if type( x ) == "table" then if type( x ) == "table" then
x, y, z = table.unpack( x ) x, y, z = table.unpack( x )
elseif type( x ) == "nil" then
x, y, z = 0, 0, 0
end end
local object = setmetatable( {}, Vector3.meta ) local object = setmetatable( {}, Vector3.meta )

View File

@@ -61,6 +61,7 @@ int lmathVector3Normalize( lua_State *L );
int lmathVector3OrthoNormalize( lua_State *L ); int lmathVector3OrthoNormalize( lua_State *L );
int lmathVector3Transform( lua_State *L ); int lmathVector3Transform( lua_State *L );
int lmathVector3RotateByQuaternion( lua_State *L ); int lmathVector3RotateByQuaternion( lua_State *L );
int lmathVector3RotateByAxisAngle( lua_State *L );
int lmathVector3Lerp( lua_State *L ); int lmathVector3Lerp( lua_State *L );
int lmathVector3Reflect( lua_State *L ); int lmathVector3Reflect( lua_State *L );
int lmathVector3Min( lua_State *L ); int lmathVector3Min( lua_State *L );

View File

@@ -1221,6 +1221,7 @@ void luaRegister() {
assingGlobalFunction( "Vector3OrthoNormalize", lmathVector3OrthoNormalize ); assingGlobalFunction( "Vector3OrthoNormalize", lmathVector3OrthoNormalize );
assingGlobalFunction( "Vector3Transform", lmathVector3Transform ); assingGlobalFunction( "Vector3Transform", lmathVector3Transform );
assingGlobalFunction( "Vector3RotateByQuaternion", lmathVector3RotateByQuaternion ); assingGlobalFunction( "Vector3RotateByQuaternion", lmathVector3RotateByQuaternion );
assingGlobalFunction( "Vector3RotateByAxisAngle", lmathVector3RotateByAxisAngle );
assingGlobalFunction( "Vector3Lerp", lmathVector3Lerp ); assingGlobalFunction( "Vector3Lerp", lmathVector3Lerp );
assingGlobalFunction( "Vector3Reflect", lmathVector3Reflect ); assingGlobalFunction( "Vector3Reflect", lmathVector3Reflect );
assingGlobalFunction( "Vector3Min", lmathVector3Min ); assingGlobalFunction( "Vector3Min", lmathVector3Min );