bevy_physimple 0.5.0

A simple 2d physics engine for bevy based on physme
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bevy::prelude::*;
use crate::{
    physics_components::{
        Vel,
        CollisionLayer,
    },
    prelude::CollisionShape,
};

/// Kinematic bodys are practically everything with the `Vel` struct
#[derive(Bundle, Default)]
pub struct KinematicBundle {
    pub vel: Vel,
    pub shape: CollisionShape,
    pub collision_layer: CollisionLayer,
}