예제 #1
0
        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()
            };
        }
예제 #2
0
 public void Initialize()
 {
     Points = FixedArray2 <ManifoldPoint> .Create();
 }