diff options
| author | Alexander Pickering <alex@cogarr.net> | 2018-11-01 13:53:16 -0400 |
|---|---|---|
| committer | Alexander Pickering <alex@cogarr.net> | 2018-11-01 13:53:16 -0400 |
| commit | 112517494847f0c86f58544cbf4c35c9b7712ab1 (patch) | |
| tree | 115d9ae3da8028e67e498ed8c587d14972b7699b /src/shared/lua_api/load_phys.cpp | |
| parent | 77b26fba6e78ac4af2b28b3bbb4646dea5682ed1 (diff) | |
| download | brokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.tar.gz brokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.tar.bz2 brokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.zip | |
Refactored code and added library
Physics code for models now lives in the shared directory.
To get file loading without irrlicht, a single-file header library
(lib/tinyobjloader-c) was added.
Metatables for generics and physics generics have also been
seperated out.
Diffstat (limited to 'src/shared/lua_api/load_phys.cpp')
| -rw-r--r-- | src/shared/lua_api/load_phys.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/lua_api/load_phys.cpp b/src/shared/lua_api/load_phys.cpp index 14a27ea..a846945 100644 --- a/src/shared/lua_api/load_phys.cpp +++ b/src/shared/lua_api/load_phys.cpp @@ -1,8 +1,10 @@ -#include "./load_phys.hpp" -#include "./phys/bphysbox.hpp" +#include "load_phys.hpp" +#include "phys/bphysbox.hpp" +#include "phys/bhingeconstraint.hpp" void loadPhysLibs(lua_State* L){ lua_newtable(L);//{} lua_setglobal(L,"phys"); bphysbox_register(L); + bhingeconstraint_register(L); } |
