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
use bevy::prelude::*;
use serde::{Deserialize, Serialize};

/// Linear velocity tuple component(access the value using `Vel.0`)
///
/// Required for a continuous collision kinematic body 
///
/// Default: `(0.0, 0.0)`
#[derive(Clone, Default, Reflect, Serialize, Deserialize, Component)]
pub struct Vel(pub Vec2);

impl Vel {
    pub const ZERO: Vel = Vel(Vec2::ZERO);
}