A 2D box-collision physics engine for use with the bevy engine
For the physics to work the PhysicsPlugin
must be added. For adding
forces/velocity to objects you can add the PhysicsBundle
and for collisions
(only collisionboxes are and will be supported) there is the CollisionBundle
.
Sensors, which lets us get information when two objects overlap can also be
added with the SensorBundle
. A very simple example can be seen below:
```rust
use bevy::prelude::;
use bevy_2d_box_physics::;
fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(PhysicsPlugin) .addstartupsystem(setup) .run(); }
fn setup(mut commands: Commands, assetserver: Res