diff options
Diffstat (limited to 'src/client/lua_api/phys')
| -rw-r--r-- | src/client/lua_api/phys/bphysbuffer.cpp | 6 | ||||
| -rw-r--r-- | src/client/lua_api/phys/bphysmodel.cpp | 22 | ||||
| -rw-r--r-- | src/client/lua_api/phys/cbphysbox.cpp | 13 |
3 files changed, 0 insertions, 41 deletions
diff --git a/src/client/lua_api/phys/bphysbuffer.cpp b/src/client/lua_api/phys/bphysbuffer.cpp index a8f7302..f1f20c0 100644 --- a/src/client/lua_api/phys/bphysbuffer.cpp +++ b/src/client/lua_api/phys/bphysbuffer.cpp @@ -34,12 +34,6 @@ static LBPhysNode* checkisbphysmodel(lua_State* L, int index){ return (LBPhysNode*) ud; } -/* -static LISceneNode* checkismesh(lua_State* L){ - return checkismesh(L,1); -} -*/ - //iscenecamera.new(Vector position, Vector lookat, parrent) // {} {} 0 1 static int newbphysmodel(lua_State* L){ diff --git a/src/client/lua_api/phys/bphysmodel.cpp b/src/client/lua_api/phys/bphysmodel.cpp index 95458b1..fdd5584 100644 --- a/src/client/lua_api/phys/bphysmodel.cpp +++ b/src/client/lua_api/phys/bphysmodel.cpp @@ -34,12 +34,6 @@ static LBPhysNode* checkisbphysmodel(lua_State* L, int index){ return (LBPhysNode*) ud; } -/* -static LISceneNode* checkismesh(lua_State* L){ - return checkismesh(L,1); -} -*/ - //iscenecamera.new(Vector position, Vector lookat, parrent) // {} {} 0 1 static int newbphysmodel(lua_State* L){ @@ -261,23 +255,8 @@ static int bphysgetpos(lua_State *L){ return 1; } -/*mesh:setmaterial("string",layernum=0)*/ -/* -static int setmaterial(lua_State* L){ - LISceneNode* n = checkismesh(L,1); - u32 layernum = luaL_optint(L,3,0); - const char* matfile = luaL_optstring(L,2,"error.png"); - printf("Setting material on a %s",n->type); - IVideoDriver* driver = device->getVideoDriver(); - n->n->setMaterialTexture( 0, driver->getTexture(matfile) ); - return 0; -} -*/ - static const luaL_reg bphysmodel_f[] = { {"new", newbphysmodel}, -// {"gethandeler", guigethandeler}, -// {"sethandeler", guisethandeler}, {0,0}, }; @@ -285,7 +264,6 @@ static const luaL_reg bphysmodel_m[] = { {"setmaterial", iscenesetmaterial}, {"getpos", bphysgetpos}, {"setpos", bphyssetpos}, -// {"settext", setiguitext}, // {"remove", removeiguielement}, {0, 0}, }; diff --git a/src/client/lua_api/phys/cbphysbox.cpp b/src/client/lua_api/phys/cbphysbox.cpp index 0baf45a..94d199f 100644 --- a/src/client/lua_api/phys/cbphysbox.cpp +++ b/src/client/lua_api/phys/cbphysbox.cpp @@ -26,19 +26,6 @@ extern IrrlichtDevice* device; extern btDiscreteDynamicsWorld* World; extern std::list<btRigidBody*> Objects; -/* -static LBPhysNode* checkisbphysbox(lua_State* L, int index){ - void* ud = luaL_checkudata(L,index,"phys.physbox"); - luaL_argcheck(L,ud != NULL, index, "'phys.physbox' expected"); - return (LBPhysNode*) ud; -} -*/ - -/* -static LISceneNode* checkismesh(lua_State* L){ - return checkismesh(L,1); -} -*/ //phys.newphysbox({vector3 size},{vector3 origin},mass) static int newcbphysbox(lua_State* L){// |
