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 arenamax
: Maximum corner of the arenatypes
: Collider type of each arena barrier in order: Left, Right, Bottom, Topworld
: World
Type parameters:
Y
: Collider type