(2402e736e) Tester's build, January 25th 2020
This commit is contained in:
@@ -82,8 +82,8 @@ namespace FarseerPhysics.Dynamics
|
||||
BodyType = BodyType.Static;
|
||||
}
|
||||
|
||||
public World World { get {return _world; } }
|
||||
|
||||
public World World { get { return _world; } }
|
||||
|
||||
public int IslandIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -350,7 +350,17 @@ namespace FarseerPhysics.Dynamics
|
||||
/// Create all proxies.
|
||||
/// </summary>
|
||||
internal void CreateProxies()
|
||||
{
|
||||
{
|
||||
for (int i = 0; i < FixtureList.Count; i++)
|
||||
{
|
||||
Debug.Assert(FixtureList[i].ProxyCount == 0, "Proxies already created for a Fixture.");
|
||||
if (FixtureList[i].ProxyCount > 0)
|
||||
{
|
||||
DestroyProxies();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
IBroadPhase broadPhase = World.ContactManager.BroadPhase;
|
||||
for (int i = 0; i < FixtureList.Count; i++)
|
||||
FixtureList[i].CreateProxies(broadPhase, ref _xf);
|
||||
|
||||
@@ -307,7 +307,7 @@ namespace FarseerPhysics.Dynamics
|
||||
internal void CreateProxies(IBroadPhase broadPhase, ref Transform xf)
|
||||
{
|
||||
if (ProxyCount != 0)
|
||||
throw new InvalidOperationException("Proxies allready created for this Fixture.");
|
||||
throw new InvalidOperationException("Proxies already created for this Fixture.");
|
||||
|
||||
// Create proxies in the broad-phase.
|
||||
ProxyCount = Shape.ChildCount;
|
||||
|
||||
Reference in New Issue
Block a user