Joint *luax_checkjoint(lua_State *L, int idx) { Joint *t = luax_checktype<Joint>(L, idx); if (!t->isValid()) luaL_error(L, "Attempt to use destroyed joint."); return t; }
int w_Joint_isDestroyed(lua_State *L) { Joint *t = luax_checktype<Joint>(L, 1); luax_pushboolean(L, !t->isValid()); return 1; }
int w_Joint_isDestroyed(lua_State *L) { Joint *t = luax_checktype<Joint>(L, 1, "Joint", PHYSICS_JOINT_T); luax_pushboolean(L, !t->isValid()); return 1; }