From 2aa18a785dc77fec53513895f5e3361c37401fe2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 23 Sep 2018 16:08:55 -0400 Subject: cbphysbox now uses generic functions cbphysbox now uses the functions defined in bphysgeneric --- src/client/lua_api/phys/cbphysbox.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/client/lua_api/phys/cbphysbox.cpp b/src/client/lua_api/phys/cbphysbox.cpp index 94d199f..e2986f4 100644 --- a/src/client/lua_api/phys/cbphysbox.cpp +++ b/src/client/lua_api/phys/cbphysbox.cpp @@ -16,6 +16,8 @@ extern "C" { #include "../scene/igeneric.hpp" #include +#include "bphysgeneric.hpp" + using namespace irr; using namespace scene; using namespace core; @@ -163,6 +165,7 @@ void cbphysbox_register(lua_State* L){ luaL_getmetatable(L,"phys.physbox");//phys.physbox lua_newtable(L);//phys.physbox,{} + luaL_register(L,NULL,brigidbody_m); luaL_register(L,NULL,cbphysbox_m);//phys.physbox,{} lua_setfield(L,-2,"__index");//phys.physbox -- cgit v1.2.3-70-g09d2