Example #1
0
        bool f_BeforeCollision(Fixture fixtureA, Fixture fixtureB)
        {
            Fixture other = fixtureA;

            if (Body.FixtureList.Contains(fixtureA))
            {
                other = fixtureB;
            }

            RagdollMuscle ragdoll = ragdollManager.GetFixtureOwner(other);

            if (ragdoll != null)
            {
                DoPickupAction(ragdoll);

                farseerManager.world.RemoveBody(Body);
                Taken = true;
                if (PickedUp != null)
                {
                    PickedUp(this, null);
                }
                return(false);
            }

            return(true);
        }