diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/lua_api/phys/cbphysbox.cpp | 2 | ||||
| -rw-r--r-- | src/client/lua_api/phys/cbphysmodel.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/client/lua_api/phys/cbphysbox.cpp b/src/client/lua_api/phys/cbphysbox.cpp index e675a04..6763945 100644 --- a/src/client/lua_api/phys/cbphysbox.cpp +++ b/src/client/lua_api/phys/cbphysbox.cpp @@ -33,7 +33,7 @@ extern std::list<btRigidBody*> Objects; //phys.newphysbox({vector3 size},{vector3 origin},mass) static int newcbphysbox(lua_State* L){// - printf("Createing new cbphysbox\n"); + //printf("Createing new cbphysbox\n"); double sx,sy,sz,x,y,z,mass; //Get the data mass = lua_tonumber(L,-1);//{v3 size}, {v3 origin}, mass diff --git a/src/client/lua_api/phys/cbphysmodel.cpp b/src/client/lua_api/phys/cbphysmodel.cpp index ae2559e..e09c62e 100644 --- a/src/client/lua_api/phys/cbphysmodel.cpp +++ b/src/client/lua_api/phys/cbphysmodel.cpp @@ -37,7 +37,7 @@ extern std::list<btRigidBody*> Objects; //newbphysmodel("graphicfile","physicfile",mass,[,{position}][,{lookat}]) static int newbphysmodel(lua_State* L){ - printf("Creating cbphysmodel\n"); + //printf("Creating cbphysmodel\n"); int nargs = lua_gettop(L); double lx,ly,lz; double x,y,z; @@ -63,7 +63,7 @@ static int newbphysmodel(lua_State* L){ ISceneManager *smgr = device->getSceneManager(); - printf("bphysnode, creating the scene node\n"); + //printf("bphysnode, creating the scene node\n"); //Create the scene node //IMeshBuffer *buf = new CDynamicMeshBuffer(E_VERTEX_TYPE::EVT_STANDARD,E_INDEX_TYPE::EIT_16BIT); @@ -209,18 +209,18 @@ static int newbphysmodel(lua_State* L){ ////gmesh->setDirty(); IMesh *gmesh = smgr->getMesh(gpath); - printf("Creating client physbox at %f %f %f\n",x,y,z); + //printf("Creating client physbox at %f %f %f\n",x,y,z); ISceneNode *node = smgr->addMeshSceneNode(gmesh,0,-1,vector3df(x,y,z)); - printf("bphysnode, createing the physics body\n"); + //printf("bphysnode, createing the physics body\n"); //Create the physics body lua_pushstring(L,ppath);//"physpath" lua_pushnumber(L,mass);//"physpath",mass pushvector3d(L,x,y,z);//"physpath",mass,{x,y,z} pushvector3d(L,lx,ly,lz);//"physpath,mass,{x,y,z},{lx,ly,lz} - printf("About to makebphysmodel\n"); + //printf("About to makebphysmodel\n"); makebphysmodel(L);//ud_rigidbody - printf("done makebphysmodel\n"); + //printf("done makebphysmodel\n"); btRigidBody *rb = (btRigidBody*)lua_touserdata(L,-1); rb->setUserPointer(node); @@ -247,7 +247,7 @@ static int newbphysmodel(lua_State* L){ lua_pushvalue(L,-4);//{rb},{phys},{colliders},ud_rb,{rb} lua_settable(L,-3);//{rb},{phys},{phys.colliders} lua_pop(L,2);//{rb} - printf("finished creating the lua representation\n"); + //printf("finished creating the lua representation\n"); return 1; } |
