aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_phys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/lua_api/load_phys.cpp')
-rw-r--r--src/client/lua_api/load_phys.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client/lua_api/load_phys.cpp b/src/client/lua_api/load_phys.cpp
index 846d34c..23bb22a 100644
--- a/src/client/lua_api/load_phys.cpp
+++ b/src/client/lua_api/load_phys.cpp
@@ -10,13 +10,20 @@ extern "C" {
#include <irrlicht.h>
#include "../callbackhandeler.hpp"
+#include "phys/cbphysbox.hpp"
+#include "phys/bphysmodel.hpp"
using namespace irr;
using namespace gui;
using namespace core;
-extern IrrlichtDevice* d;
+extern IrrlichtDevice* device;
void load_physfuncs(lua_State* L){
- printf("Called load physfuncs...");
+ lua_newtable(L);//{}
+ lua_setglobal(L,"phys");//
+ //phys things
+ cbphysbox_register(L);
+
+ bphysmodel_register(L,device);
}