aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/phys/cbphysbox.cpp
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-09-23 16:08:55 -0400
committerAlexander Pickering <alex@cogarr.net>2018-09-23 16:08:55 -0400
commit2aa18a785dc77fec53513895f5e3361c37401fe2 (patch)
treec6ad838f6a6cfbb7fd0c6137d0ef7ffc59762904 /src/client/lua_api/phys/cbphysbox.cpp
parent921cfb8d147aea751bb494b4a88efe4cb75daa68 (diff)
downloadbrokengine-2aa18a785dc77fec53513895f5e3361c37401fe2.tar.gz
brokengine-2aa18a785dc77fec53513895f5e3361c37401fe2.tar.bz2
brokengine-2aa18a785dc77fec53513895f5e3361c37401fe2.zip
cbphysbox now uses generic functions
cbphysbox now uses the functions defined in bphysgeneric
Diffstat (limited to 'src/client/lua_api/phys/cbphysbox.cpp')
-rw-r--r--src/client/lua_api/phys/cbphysbox.cpp3
1 files changed, 3 insertions, 0 deletions
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 <shared/lua_api/common.hpp>
+#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