예제 #1
0
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;
}
예제 #2
0
int w_Joint_isDestroyed(lua_State *L)
{
	Joint *t = luax_checktype<Joint>(L, 1);
	luax_pushboolean(L, !t->isValid());
	return 1;
}
예제 #3
0
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;
}