diff options
| author | Alexander <alex@cogarr.net> | 2019-01-09 16:09:39 -0500 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2019-01-09 16:09:39 -0500 |
| commit | bb9f6d43a4e574506e3049bd56c890c242d35e8b (patch) | |
| tree | 5935b51197a2f571593a01d972559b85ca485773 /src/shared/lua_api/load_phys.cpp | |
| parent | 2009501214f3c2e3f8d8b1a06432afdf39276bd5 (diff) | |
| download | brokengine-bb9f6d43a4e574506e3049bd56c890c242d35e8b.tar.gz brokengine-bb9f6d43a4e574506e3049bd56c890c242d35e8b.tar.bz2 brokengine-bb9f6d43a4e574506e3049bd56c890c242d35e8b.zip | |
Moved the define constant definition into common/shared header
Diffstat (limited to 'src/shared/lua_api/load_phys.cpp')
| -rw-r--r-- | src/shared/lua_api/load_phys.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/lua_api/load_phys.cpp b/src/shared/lua_api/load_phys.cpp index 6875970..7580e99 100644 --- a/src/shared/lua_api/load_phys.cpp +++ b/src/shared/lua_api/load_phys.cpp @@ -1,10 +1,16 @@ #include "load_phys.hpp" #include "phys/bphysbox.hpp" #include "phys/bhingeconstraint.hpp" +#include <btBulletDynamicsCommon.h> +#include <shared/lua_api/common.hpp> void load_physfuncs(lua_State* L){ lua_newtable(L);//{} lua_setglobal(L,"phys"); + set_const(L,BT_DISABLE_WORLD_GRAVITY); + set_const(L,BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT); + set_const(L,BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD); + set_const(L,BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY); bphysbox_register(L); bhingeconstraint_register(L); } |
