Skip to main content

b2RayCastCallbackImpl

Trait b2RayCastCallbackImpl 

Source
pub trait b2RayCastCallbackImpl {
    // Required methods
    fn report_fixture(
        &mut self,
        fixture: &mut b2Fixture,
        point: &b2Vec2,
        normal: &b2Vec2,
        fraction: f32,
    ) -> f32;
    fn report_particle(
        &mut self,
        particle_system: &b2ParticleSystem,
        index: i32,
        point: &b2Vec2,
        normal: &b2Vec2,
        fraction: f32,
    ) -> f32;
    fn should_query_particle_system(
        &mut self,
        particle_system: *const b2ParticleSystem,
    ) -> bool;
}

Required Methods§

Source

fn report_fixture( &mut self, fixture: &mut b2Fixture, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32

Source

fn report_particle( &mut self, particle_system: &b2ParticleSystem, index: i32, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32

Source

fn should_query_particle_system( &mut self, particle_system: *const b2ParticleSystem, ) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§