pub struct CastOutput {
pub normal: Vec2,
pub point: Vec2,
pub fraction: f32,
pub iterations: i32,
pub hit: bool,
}Expand description
Low level ray cast or shape cast output data. The hit point is in the local or relative frame of the input. Returns a zero fraction and normal in the case of initial overlap. (b2CastOutput)
Fields§
§normal: Vec2The surface normal at the hit point
point: Vec2The surface hit point
fraction: f32The fraction of the input translation at collision
iterations: i32The number of iterations used
hit: boolDid the cast hit?
Trait Implementations§
Source§impl Clone for CastOutput
impl Clone for CastOutput
Source§fn clone(&self) -> CastOutput
fn clone(&self) -> CastOutput
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 CastOutput
Source§impl Debug for CastOutput
impl Debug for CastOutput
Source§impl Default for CastOutput
impl Default for CastOutput
Source§fn default() -> CastOutput
fn default() -> CastOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for CastOutput
impl PartialEq for CastOutput
impl StructuralPartialEq for CastOutput
Auto Trait Implementations§
impl Freeze for CastOutput
impl RefUnwindSafe for CastOutput
impl Send for CastOutput
impl Sync for CastOutput
impl Unpin for CastOutput
impl UnsafeUnpin for CastOutput
impl UnwindSafe for CastOutput
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