rename loadUrdf -> loadMultiBodyFromUrdf in lua script
remove unused m_usrd2mblink
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user