tools/rLuaParser/raylib-lua_test.h
int lua_GetCollisionRayTriangle(lua_State *L)
{
    Ray ray = LuaGetArgument_Ray(L, 1);
    Vector3 p1 = LuaGetArgument_Vector3(L, 2);
    Vector3 p2 = LuaGetArgument_Vector3(L, 3);
    Vector3 p3 = LuaGetArgument_Vector3(L, 4);
    RayHitInfo result = GetCollisionRayTriangle(ray, p1, p2, p3);
    LuaPush_RayHitInfo(L, result);
    return 1;
}
// Get collision info between ray and triangle
Get collision info between ray and triangle
Get collision info between ray and triangle
int lua_GetCollisionRayTriangle(lua_State *L)
{
    Ray ray = LuaGetArgument_Ray(L, 1);
    Vector3 p1 = LuaGetArgument_Vector3(L, 2);
    Vector3 p2 = LuaGetArgument_Vector3(L, 3);
    Vector3 p3 = LuaGetArgument_Vector3(L, 4);
    RayHitInfo result = GetCollisionRayTriangle(ray, p1, p2, p3);
    LuaPush_RayHitInfo(L, result);
    return 1;
}
int lua_GetCollisionRayTriangle ( lua_State * L ) { Ray ray = LuaGetArgument_Ray ( L , 1 ) ; Vector3 p1 = LuaGetArgument_Vector3 ( L , 2 ) ; Vector3 p2 = LuaGetArgument_Vector3 ( L , 3 ) ; Vector3 p3 = LuaGetArgument_Vector3 ( L , 4 ) ; RayHitInfo result = GetCollisionRayTriangle ( ray , p1 , p2 , p3 ) ; LuaPush_RayHitInfo ( L , result ) ; return 1 ; }
Get collision info between ray and triangle
Get collision info between ray and triangle