pub struct WorldCastOutput {
pub normal: Vec2,
pub point: Pos,
pub fraction: f32,
pub iterations: i32,
pub hit: bool,
}Expand description
Ray cast or shape cast output with the hit point lifted back to a world
position. In the C single-precision build this is an alias of b2CastOutput;
the double-precision build widens point to b2Pos, which is what the
unconditional Pos here does in both modes. (b2WorldCastOutput)
Fields§
§normal: Vec2The surface normal at the hit point
point: PosThe surface hit point in world space
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 WorldCastOutput
impl Clone for WorldCastOutput
Source§fn clone(&self) -> WorldCastOutput
fn clone(&self) -> WorldCastOutput
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 WorldCastOutput
Source§impl Debug for WorldCastOutput
impl Debug for WorldCastOutput
Source§impl Default for WorldCastOutput
impl Default for WorldCastOutput
Source§fn default() -> WorldCastOutput
fn default() -> WorldCastOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorldCastOutput
impl PartialEq for WorldCastOutput
impl StructuralPartialEq for WorldCastOutput
Auto Trait Implementations§
impl Freeze for WorldCastOutput
impl RefUnwindSafe for WorldCastOutput
impl Send for WorldCastOutput
impl Sync for WorldCastOutput
impl Unpin for WorldCastOutput
impl UnsafeUnpin for WorldCastOutput
impl UnwindSafe for WorldCastOutput
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