pub struct TerminalCollider {
pub layer: Layer,
pub is_active: bool,
}Expand description
Marks that an entity in the world is capable of colliding with other TerminalColliders.
Fields§
§layer: LayerThe collision layer this collider is on. The layer can be used by a collision processing system to know what two kinds of things are colliding.
is_active: boolWhether the collider is active. If a collider isn’t active, it won’t generate any collisions with other colliders.
Trait Implementations§
Source§impl Clone for TerminalCollider
impl Clone for TerminalCollider
Source§fn clone(&self) -> TerminalCollider
fn clone(&self) -> TerminalCollider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Component for TerminalCollider
impl Component for TerminalCollider
fn name() -> &'static str
fn component_name(&self) -> &'static str
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn is_component_type(comp: &dyn Component) -> boolwhere
Self: Sized,
fn cast(comp: &dyn Component) -> Option<&Self>where
Self: Sized,
fn cast_mut(comp: &mut dyn Component) -> Option<&mut Self>where
Self: Sized,
Source§impl Debug for TerminalCollider
impl Debug for TerminalCollider
impl Copy for TerminalCollider
Auto Trait Implementations§
impl Freeze for TerminalCollider
impl RefUnwindSafe for TerminalCollider
impl Send for TerminalCollider
impl Sync for TerminalCollider
impl Unpin for TerminalCollider
impl UnwindSafe for TerminalCollider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more