MCPcopy Create free account
hub / github.com/defold/defold / PushVector3

Function PushVector3

engine/script/src/script_vmath.cpp:2794–2800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2792 }
2793
2794 void PushVector3(lua_State* L, const Vector3& v)
2795 {
2796 Vector3* vp = (Vector3*)lua_newuserdata(L, sizeof(Vector3));
2797 *vp = v;
2798 luaL_getmetatable(L, SCRIPT_TYPE_NAME_VECTOR3);
2799 lua_setmetatable(L, -2);
2800 }
2801
2802 Vector3* CheckVector3(lua_State* L, int index)
2803 {

Callers 15

Script_GetPositionFunction · 0.85
Script_GetScaleFunction · 0.85
Script_GetWorldPositionFunction · 0.85
Script_GetWorldScaleFunction · 0.85
PropertiesToLuaTableFunction · 0.85
LuaPushVarFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
DDFToLuaValueFunction · 0.85
Vector3_addFunction · 0.85
Vector3_subFunction · 0.85

Calls 2

lua_newuserdataFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by 5

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68