Rename getShapeList to getShapes; Fix getJoints;
@@ -29,7 +29,7 @@ int l_lovrColliderRemoveShape(lua_State* L) {
return 0;
}
-int l_lovrColliderGetShapeList(lua_State* L) {
+int l_lovrColliderGetShapes(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
lua_newtable(L);
vec_void_t* shapes = lovrColliderGetShapes(collider);
@@ -40,7 +40,7 @@ int l_lovrColliderGetShapeList(lua_State* L) {
return 1;
}
-int l_lovrColliderGetJointList(lua_State* L) {
+int l_lovrColliderGetJoints(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
lua_newtable(L);
vec_void_t* joints = lovrColliderGetJoints(collider);
@@ -476,7 +476,8 @@ const luaL_Reg lovrCollider[] = {
{ "getWorld", l_lovrColliderGetWorld },
{ "addShape", l_lovrColliderAddShape },
{ "removeShape", l_lovrColliderRemoveShape },
- { "getShapeList", l_lovrColliderGetShapeList },
+ { "getShapes", l_lovrColliderGetShapes },
+ { "getJoints", l_lovrColliderGetJoints },
{ "getUserData", l_lovrColliderGetUserData },
{ "setUserData", l_lovrColliderSetUserData },
{ "isKinematic", l_lovrColliderIsKinematic },
