nightshade 0.57.0

A cross-platform data-oriented game engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Prebuilt bundles of physics components, nesting the engine's
//! [`SpatialBundle`](crate::ecs::bundles::SpatialBundle).

use crate::ecs::bundles::SpatialBundle;
use crate::plugins::physics::components::{ColliderComponent, RigidBodyComponent};

nightshade_ecs::bundle! {
    /// A rigid body with a collider.
    pub struct RigidBodyBundle {
        pub spatial: SpatialBundle,
        pub rigid_body: RigidBodyComponent,
        pub collider: ColliderComponent,
    }
}