[−][src]Trait box2d_rs::b2_world_callbacks::B2destructionListener
Joints and fixtures are destroyed when their associated body is destroyed. Implement this listener so that you may nullify references to these joints and shapes.
Required methods
pub fn say_goodbye_joint(&mut self, joint: B2jointPtr<D>)
Called when any joint is about to be destroyed due to the destruction of one of its attached bodies.
pub fn say_goodbye_fixture(&mut self, fixture: FixturePtr<D>)
Called when any fixture is about to be destroyed due to the destruction of its parent body.