diff options
| author | Alexander <alex@cogarr.net> | 2020-06-10 20:39:54 -0400 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2020-06-10 20:39:54 -0400 |
| commit | 44a1421c393632978d59c0698a93ae22243b97e9 (patch) | |
| tree | ea5d48412339b0ee6792c01414660639d19cfec6 /src/shared/lua_api/load_phys.cpp | |
| parent | ececf2c8624f4d95d9413686839f7fa6e5bb5044 (diff) | |
| download | brokengine-44a1421c393632978d59c0698a93ae22243b97e9.tar.gz brokengine-44a1421c393632978d59c0698a93ae22243b97e9.tar.bz2 brokengine-44a1421c393632978d59c0698a93ae22243b97e9.zip | |
Various progress for 1klutz
Added convext shape casts, still a little broken, but it might be
just broken bullet side.
Diffstat (limited to 'src/shared/lua_api/load_phys.cpp')
| -rw-r--r-- | src/shared/lua_api/load_phys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/lua_api/load_phys.cpp b/src/shared/lua_api/load_phys.cpp index 33a59fe..d20545e 100644 --- a/src/shared/lua_api/load_phys.cpp +++ b/src/shared/lua_api/load_phys.cpp @@ -31,7 +31,7 @@ int shapecast(lua_State *L){ //hw = cb->m_hitPointWorld; //hn = cb->m_hitNormalWorld; //printf("before getting results\n\tHasHit:%d\n\tHit:%f,%f,%f\n\tNor:%f,%f,%f\n",cb->hasHit() ? 1 : 0,hw.x(),hw.y(),hw.z(),hn.x(),hn.y(),hn.z()); - World->convexSweepTest(cs,ft,tt,*cb,0.f); + World->convexSweepTest(cs,ft,tt,*cb,1.f); hw = cb->m_hitPointWorld; hn = cb->m_hitNormalWorld; //printf("Got sweep results\n\tHasHit:%d\n\tHit:%f,%f,%f\n\tNor:%f,%f,%f\n",cb->hasHit() ? 1 : 0,hw.x(),hw.y(),hw.z(),hn.x(),hn.y(),hn.z()); @@ -42,7 +42,7 @@ int shapecast(lua_State *L){ lua_setfield(L,-2,"pos"); pushvector3d(L,hn.x(),hn.y(),hn.z()); lua_setfield(L,-2,"normal"); - + delete cb; return 1; } |
