Function amethyst_rhusics::setup_2d_arena[][src]

pub fn setup_2d_arena<Y>(
    min: Point2<f32>,
    max: Point2<f32>,
    types: (Y, Y, Y, Y),
    world: &mut World
) where
    Y: Default + Send + Sync + 'static, 

Setup 2D arena.

An arena is a space with invisible walls around the space, that defines a collision room.

Parameters:

  • min: Minimum corner of the arena
  • max: Maximum corner of the arena
  • types: Collider type of each arena barrier in order: Left, Right, Bottom, Top
  • world: World

Type parameters:

  • Y: Collider type