/// Knock defines whether dynamic colliders should have this static collider's velocity added to them on collision.
/// This is usually recommended to be enabled for collisions to appear more sensible.
Knock defines whether dynamic colliders should have this static collider's velocity added to them on collision.
This is usually recommended to be enabled for collisions to appear more sensible.
Knock defines whether dynamic colliders should have this static collider ' s velocity added to them on collision . This is usually recommended to be enabled for collisions to appear more sensible .
pub fn new_static_trigger(
        body: Body,
        trigger: Box<dyn Fn(usize, usize, Fp, BodySweepData, Fp)>,
        knock: bool,
    ) -> Collider {
        let broad = body.get_broad();
        Collider {
            body,
            trigger,
            is_static: true,
            ctu: ColliderTypeUnion { stat: knock },
            broad_y: (broad.min.y, broad.max.y),
            remainder: 1.0
        }
    }
pub fn new_static_trigger ( body : Body , trigger : Box < dyn Fn ( usize , usize , Fp , BodySweepData , Fp ) > , knock : bool , ) -> Collider { let broad = body . get_broad ( ) ; Collider { body , trigger , is_static : true , ctu : ColliderTypeUnion { stat : knock } , broad_y : ( broad . min . y , broad . max . y ) , remainder : 1.0 } }
Knock defines whether dynamic colliders should have this static collider's velocity added to them on collision.
Knock defines whether dynamic colliders should have this static collider ' s velocity added to them on collision .
body
Body
trigger
Box<dyn Fn(usize, usize, Fp, BodySweepData, Fp)>
knock
bool