internal void Initialize(Fixture fixtureA, int indexA, Fixture fixtureB, int indexB) { Flags = ContactFlag.EnabledFlag; FixtureA = fixtureA; FixtureB = fixtureB; ChildIndexA = indexA; ChildIndexB = indexB; ToiCount = 0; Friction = MixFriction(FixtureA.Friction, FixtureB.Friction); Restitution = MixRestitution(FixtureA.Restitution, FixtureB.Restitution); TangentSpeed = 0.0f; Manifold = new Manifold() { Points = FixedArray2 <ManifoldPoint> .Create() }; }
public void Initialize() { Points = FixedArray2 <ManifoldPoint> .Create(); }