Genbox / VelcroPhysics

High performance 2D collision detection system with realistic physics responses.
MIT License
672 stars 115 forks source link

Destroying a Fixture removes World events. #26

Closed nkast closed 3 years ago

nkast commented 7 years ago

Destroying a Fixture (ex. a body is removed from the world) will unsubscribe the events World.FixtureAdded & World.FixtureRemoved.

https://github.com/VelcroPhysics/VelcroPhysics/blob/678704b28669d43e5a5dbe3644ca569003a76603/SourceFiles/Dynamics/Fixture.cs#L414-L415