#[repr(C)]pub struct RaycastHit2D {
pub m_centroid: Vector2,
pub m_point: Vector2,
pub m_normal: Vector2,
pub m_distance: f32,
pub m_fraction: f32,
pub m_collider: i32,
}Expand description
Fields§
§m_centroid: Vector2§m_point: Vector2§m_normal: Vector2§m_distance: f32§m_fraction: f32§m_collider: i32Implementations§
Source§impl RaycastHit2D
impl RaycastHit2D
Sourcepub fn get_normal(&mut self) -> Vector2
pub fn get_normal(&mut self) -> Vector2
get_normal() overload
Sourcepub fn get_distance(&mut self) -> f32
pub fn get_distance(&mut self) -> f32
get_distance() overload
Sourcepub fn get_collider(&mut self) -> Collider2D
pub fn get_collider(&mut self) -> Collider2D
get_collider() overload
Source§impl RaycastHit2D
impl RaycastHit2D
pub fn get_point_method_info() -> &'static MethodInfo
pub fn get_normal_method_info() -> &'static MethodInfo
pub fn get_distance_method_info() -> &'static MethodInfo
pub fn get_collider_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for RaycastHit2D
impl ClassIdentity for RaycastHit2D
Source§impl Clone for RaycastHit2D
impl Clone for RaycastHit2D
Source§fn clone(&self) -> RaycastHit2D
fn clone(&self) -> RaycastHit2D
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RaycastHit2D
Auto Trait Implementations§
impl Freeze for RaycastHit2D
impl RefUnwindSafe for RaycastHit2D
impl Send for RaycastHit2D
impl Sync for RaycastHit2D
impl Unpin for RaycastHit2D
impl UnwindSafe for RaycastHit2D
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)