pub struct TimeOfImpactOutput {
pub state: TimeOfImpactState,
pub point: Vec3,
pub normal: Vec3,
pub fraction: f32,
pub distance: f32,
pub distance_iterations: i32,
pub push_back_iterations: i32,
pub root_iterations: i32,
pub used_fallback: bool,
}Expand description
Output from a time-of-impact query.
Fields§
§state: TimeOfImpactStateSolver state.
point: Vec3Contact point at the time of impact.
normal: Vec3Contact normal at the time of impact.
fraction: f32Fraction at which the reported state occurred.
distance: f32Distance at the reported state.
distance_iterations: i32Distance solver iteration count.
push_back_iterations: i32Push-back solver iteration count.
root_iterations: i32Root solver iteration count.
used_fallback: boolWhether Box3D used a fallback path.
Trait Implementations§
Source§impl Clone for TimeOfImpactOutput
impl Clone for TimeOfImpactOutput
Source§fn clone(&self) -> TimeOfImpactOutput
fn clone(&self) -> TimeOfImpactOutput
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 TimeOfImpactOutput
Source§impl Debug for TimeOfImpactOutput
impl Debug for TimeOfImpactOutput
Source§impl PartialEq for TimeOfImpactOutput
impl PartialEq for TimeOfImpactOutput
Source§fn eq(&self, other: &TimeOfImpactOutput) -> bool
fn eq(&self, other: &TimeOfImpactOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimeOfImpactOutput
Auto Trait Implementations§
impl Freeze for TimeOfImpactOutput
impl RefUnwindSafe for TimeOfImpactOutput
impl Send for TimeOfImpactOutput
impl Sync for TimeOfImpactOutput
impl Unpin for TimeOfImpactOutput
impl UnsafeUnpin for TimeOfImpactOutput
impl UnwindSafe for TimeOfImpactOutput
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