Build 0.18.0.0
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user