From 9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 22 Jun 2018 12:38:38 -0600 Subject: Updated core Updated all core files to prepare for tech demo --- src/client/lua_api/load_phys.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/client/lua_api/load_phys.cpp') 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 #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); } -- cgit v1.2.3-70-g09d2