From d5cd0c7b4425e25b11a1ceec154a5c752d508a42 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 26 Jun 2019 16:14:00 -0400 Subject: Major refactor of physics code Move all the physics code into the shared directory, and fix the ghost objects (aabb only) --- src/client/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/main.cpp') diff --git a/src/client/main.cpp b/src/client/main.cpp index 0a82e99..f08862c 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -27,6 +27,7 @@ extern "C" { #include #include "../shared/lua_api/load_net.hpp" #include "../shared/phys/physcommon.hpp" +#include "../shared/lua_api/load_common.hpp" using namespace irr; using namespace core; @@ -104,6 +105,7 @@ void UpdateElement(btCollisionObject* obj){ btTransform transform = obj->getWorldTransform(); btVector3 pos = transform.getOrigin(); node->setPosition(core::vector3df((f32)pos[0], (f32)pos[1], (f32)pos[2])); + //printf("Setting new position to %f %f %f\n", pos[0], pos[1], pos[2]); //Set rotation btQuaternion rot = transform.getRotation(); @@ -153,6 +155,7 @@ int main(int argc, char *argv[]){ luaL_openlibs(state); loadIrrLibs(state,device); loadNetLibs(state); + loadCommonLibs(state); printf("Loadded irr libs...\n"); //Sets the global event handeler printf("Creating event receiver\n"); -- cgit v1.2.3-70-g09d2