Skip to main content

rectangle_body

Function rectangle_body 

Source
pub fn rectangle_body(
    center: Vec2,
    velocity: Vec2,
    half_extents: Vec2,
    mass: f32,
) -> Option<BodyDef<EuclideanR2>>