Build 0.18.0.0

This commit is contained in:
Markus Isberg
2022-05-13 00:55:52 +09:00
parent 15d18e6ff6
commit 7547a9b78a
218 changed files with 3881 additions and 2192 deletions
@@ -44,13 +44,13 @@ namespace FarseerPhysics.Common
if (path.Closed)
{
ChainShape chain = new ChainShape(verts, true);
body.CreateFixture(chain);
body.CreateFixture(chain, Category.Cat1, Category.All);
}
else
{
for (int i = 1; i < verts.Count; i++)
{
body.CreateFixture(new EdgeShape(verts[i], verts[i - 1]));
body.CreateFixture(new EdgeShape(verts[i], verts[i - 1]), Category.Cat1, Category.All);
}
}
}
@@ -74,7 +74,7 @@ namespace FarseerPhysics.Common
foreach (Vertices item in decomposedVerts)
{
body.CreateFixture(new PolygonShape(item, density));
body.CreateFixture(new PolygonShape(item, density), Category.Cat1, Category.All);
}
}
@@ -105,7 +105,7 @@ namespace FarseerPhysics.Common
foreach (Shape shape in shapes)
{
b.CreateFixture(shape);
b.CreateFixture(shape, Category.Cat1, Category.All);
}
bodyList.Add(b);
@@ -56,7 +56,7 @@ namespace FarseerPhysics.Common.PhysicsLogic
foreach (Vertices part in vertices)
{
PolygonShape polygonShape = new PolygonShape(part, density);
Fixture fixture = MainBody.CreateFixture(polygonShape);
Fixture fixture = MainBody.CreateFixture(polygonShape, Category.Cat1, Category.All);
Parts.Add(fixture);
}
}
@@ -67,7 +67,7 @@ namespace FarseerPhysics.Common.PhysicsLogic
foreach (Shape part in shapes)
{
Fixture fixture = MainBody.CreateFixture(part);
Fixture fixture = MainBody.CreateFixture(part, Category.Cat1, Category.All);
Parts.Add(fixture);
}
}
@@ -82,7 +82,7 @@ namespace FarseerPhysics.Common.PhysicsLogic
foreach (Vertices part in triangles)
{
PolygonShape polygonShape = new PolygonShape(part, density);
Fixture fixture = MainBody.CreateFixture(polygonShape);
Fixture fixture = MainBody.CreateFixture(polygonShape, Category.Cat1, Category.All);
Parts.Add(fixture);
}
}
@@ -161,7 +161,7 @@ namespace FarseerPhysics.Common.PhysicsLogic
Body body = World.CreateBody(MainBody.Position, MainBody.Rotation, BodyType.Dynamic);
body.UserData = MainBody.UserData;
Fixture newFixture = body.CreateFixture(shape);
Fixture newFixture = body.CreateFixture(shape, Category.Cat1, Category.All);
newFixture.UserData = fixtureTag;
Parts[i] = newFixture;
@@ -614,7 +614,7 @@ namespace FarseerPhysics.Common
{
foreach (XMLFragmentElement element in fixtureElement.Elements)
{
Fixture fixture = new Fixture();
Fixture fixture = new Fixture(Category.Cat1, Category.All);
if (element.Name.ToLower() != "fixture")
throw new Exception();