Added get/setGroupIndex (#129) and get/setFixedRotation (#113). Also fixed 3000 auto.lua-related warnings in MSVC.

This commit is contained in:
rude
2010-01-04 20:02:36 +01:00
parent 6fde5de6b6
commit cd24dbcb8e
13 changed files with 77 additions and 5 deletions
+14
View File
@@ -183,6 +183,20 @@ namespace box2d
return 0;
}
void Shape::setGroupIndex(int index)
{
b2FilterData f = shape->GetFilterData();
f.groupIndex = (uint16)index;
shape->SetFilterData(f);
shape->GetBody()->GetWorld()->Refilter(shape);
}
int Shape::getGroupIndex() const
{
b2FilterData f = shape->GetFilterData();
return f.groupIndex;
}
int Shape::getCategory(lua_State * L)
{
return pushBits(L, shape->GetFilterData().categoryBits);