Struct tato::CollisionProbe
source · pub struct CollisionProbe<T> {
pub kind: ColliderKind,
pub entity_id: EntityID,
pub pos: Vec2<T>,
pub velocity: Vec2<T>,
pub layer: u8,
pub mask: u8,
}
Expand description
Generated when checking for collisions, contains additional collider information like velocity and start position.
Fields§
§kind: ColliderKind
§entity_id: EntityID
§pos: Vec2<T>
§velocity: Vec2<T>
§layer: u8
§mask: u8
Trait Implementations§
source§impl<T: Clone> Clone for CollisionProbe<T>
impl<T: Clone> Clone for CollisionProbe<T>
source§fn clone(&self) -> CollisionProbe<T>
fn clone(&self) -> CollisionProbe<T>
Returns a copy 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<T: Debug> Debug for CollisionProbe<T>
impl<T: Debug> Debug for CollisionProbe<T>
Auto Trait Implementations§
impl<T> Freeze for CollisionProbe<T>where
T: Freeze,
impl<T> RefUnwindSafe for CollisionProbe<T>where
T: RefUnwindSafe,
impl<T> Send for CollisionProbe<T>where
T: Send,
impl<T> Sync for CollisionProbe<T>where
T: Sync,
impl<T> Unpin for CollisionProbe<T>where
T: Unpin,
impl<T> UnwindSafe for CollisionProbe<T>where
T: UnwindSafe,
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