/// 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(body: Body, knock: bool) -> Collider {
        let broad = body.get_broad();
        Collider {
            body,
            trigger: Box::new(|_, _, _, _, _| {}),
            is_static: true,
            ctu: ColliderTypeUnion { stat: knock },
            broad_y: (broad.min.y, broad.max.y),
            remainder: 1.0,
        }
    }
pub fn new_static ( body : Body , knock : bool ) -> Collider { let broad = body . get_broad ( ) ; Collider { body , trigger : Box :: new ( | _ , _ , _ , _ , _ | { } ) , 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
knock
bool