thomas/components/terminal/comp_terminal_collider.rs
1use crate::{Component, Layer};
2
3/// Marks that an entity in the world is capable of colliding with other `TerminalCollider`s.
4#[derive(Component, Copy, Clone, Debug)]
5pub struct TerminalCollider {
6 /// The collision layer this collider is on. The layer can be used by a collision processing system to know
7 /// what two kinds of things are colliding.
8 pub layer: Layer,
9 /// Whether the collider is active. If a collider isn't active, it won't generate any collisions with other colliders.
10 pub is_active: bool,
11}