diff options
| author | Alexander <alex@cogarr.net> | 2019-06-26 16:14:00 -0400 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2019-06-26 16:14:00 -0400 |
| commit | d5cd0c7b4425e25b11a1ceec154a5c752d508a42 (patch) | |
| tree | ef50cd7d419bba30ee08f46c97232b1c8c68d2be /src/client/main.cpp | |
| parent | 3d60e1432ec43ade4aa61b5a70dd6b8975417e9f (diff) | |
| download | brokengine-d5cd0c7b4425e25b11a1ceec154a5c752d508a42.tar.gz brokengine-d5cd0c7b4425e25b11a1ceec154a5c752d508a42.tar.bz2 brokengine-d5cd0c7b4425e25b11a1ceec154a5c752d508a42.zip | |
Major refactor of physics code
Move all the physics code into the shared directory,
and fix the ghost objects (aabb only)
Diffstat (limited to 'src/client/main.cpp')
| -rw-r--r-- | src/client/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <shared/lua_api/common.hpp> #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"); |
