#[repr(C)]pub struct b3TOIOutput {
pub state: b3TOIState,
pub point: b3Vec3,
pub normal: b3Vec3,
pub fraction: f32,
pub distance: f32,
pub distanceIterations: c_int,
pub pushBackIterations: c_int,
pub rootIterations: c_int,
pub usedFallback: bool,
}Expand description
Time of impact output
Fields§
§state: b3TOIStateThe type of result
point: b3Vec3The hit point
normal: b3Vec3The hit normal
fraction: f32The sweep time of the collision
distance: f32The final distance
distanceIterations: c_intNumber of outer iterations
pushBackIterations: c_intTotal number of push back iterations
rootIterations: c_intTotal number of root iterations
usedFallback: boolIndicates that the time of impact detected initial overlap and used a fallback sphere as a last ditch effort to prevent tunneling.
Trait Implementations§
Source§impl Clone for b3TOIOutput
impl Clone for b3TOIOutput
Source§fn clone(&self) -> b3TOIOutput
fn clone(&self) -> b3TOIOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3TOIOutput
Auto Trait Implementations§
impl Freeze for b3TOIOutput
impl RefUnwindSafe for b3TOIOutput
impl Send for b3TOIOutput
impl Sync for b3TOIOutput
impl Unpin for b3TOIOutput
impl UnsafeUnpin for b3TOIOutput
impl UnwindSafe for b3TOIOutput
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