Ballz.GameSession.Physics.PhysicsControl.RemoveBody C# (CSharp) Method

RemoveBody() public method

public RemoveBody ( Body body ) : void
body FarseerPhysics.Dynamics.Body
return void
        public void RemoveBody(Body body)
        {
            var fixtures = body.FixtureList.ToArray();
            foreach (var fixture in fixtures)
            {
                fixture.Dispose();
            }

            body.Dispose();
        }