rename loadUrdf -> loadMultiBodyFromUrdf in lua script

remove unused m_usrd2mblink
This commit is contained in:
erwin
2015-05-14 09:16:13 -07:00
parent e196ed1edb
commit c9a630e7c6
5 changed files with 8 additions and 11 deletions

View File

@@ -269,7 +269,7 @@ static int gCreateRigidBody (lua_State *L)
if (!lua_isuserdata(L,2))
{
std::cerr << "error: second argument to b3CreateRigidbody should be world";
std::cerr << "error: second argument to b3CreateRigidbody should be collision shape";
return 0;
}
@@ -291,7 +291,6 @@ static int gCreateRigidBody (lua_State *L)
}
btRigidBody* body = new btRigidBody(mass,0,colShape,inertia);
body->getWorldTransform().setOrigin(pos);
body->getWorldTransform().setRotation(orn);
@@ -409,7 +408,8 @@ void LuaPhysicsSetup::initPhysics()
lua_register(L, "deleteDynamicsWorld", gDeleteDynamicsWorld);
lua_register(L, "createCubeShape", gCreateCubeShape);
lua_register(L, "createSphereShape", gCreateSphereShape);
lua_register(L, "loadUrdf",gLoadMultiBodyFromUrdf);
lua_register(L, "loadMultiBodyFromUrdf",gLoadMultiBodyFromUrdf);
lua_register(L, "createRigidBody", gCreateRigidBody);
lua_register(L, "setBodyPosition", gSetBodyPosition);
lua_register(L, "setBodyOrientation", gSetBodyOrientation);