pub struct RayResult {
pub shape_id: ShapeId,
pub point: Pos,
pub normal: Vec2,
pub fraction: f32,
pub node_visits: i32,
pub leaf_visits: i32,
pub hit: bool,
}Expand description
Result from b2World_RayCastClosest. (b2RayResult)
Fields§
§shape_id: ShapeId§point: Pos§normal: Vec2§fraction: f32§node_visits: i32§leaf_visits: i32§hit: boolTrait Implementations§
impl Copy for RayResult
impl StructuralPartialEq for RayResult
Auto Trait Implementations§
impl Freeze for RayResult
impl RefUnwindSafe for RayResult
impl Send for RayResult
impl Sync for RayResult
impl Unpin for RayResult
impl UnsafeUnpin for RayResult
impl UnwindSafe for RayResult
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