pub struct ToiOutput {
pub state: ToiState,
pub point: Vec2,
pub normal: Vec2,
pub fraction: f32,
}Expand description
Time of impact output. (b2TOIOutput)
Fields§
§state: ToiStateThe type of result
point: Vec2The hit point
normal: Vec2The hit normal
fraction: f32The sweep time of the collision
Trait Implementations§
impl Copy for ToiOutput
impl StructuralPartialEq for ToiOutput
Auto Trait Implementations§
impl Freeze for ToiOutput
impl RefUnwindSafe for ToiOutput
impl Send for ToiOutput
impl Sync for ToiOutput
impl Unpin for ToiOutput
impl UnsafeUnpin for ToiOutput
impl UnwindSafe for ToiOutput
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