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