#[non_exhaustive]pub struct EntityHit {
pub id: i32,
pub hit: Vec3,
pub entity_pos: Vec3,
pub distance: f64,
}Expand description
An entity the crosshair is on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: i32The entity id.
hit: Vec3The point hit (absolute; the eyes when they are inside the box).
entity_pos: Vec3The entity’s position (for interact-at offsets).
distance: f64Distance from the eyes.
Trait Implementations§
impl Copy for EntityHit
impl StructuralPartialEq for EntityHit
Auto Trait Implementations§
impl Freeze for EntityHit
impl RefUnwindSafe for EntityHit
impl Send for EntityHit
impl Sync for EntityHit
impl Unpin for EntityHit
impl UnsafeUnpin for EntityHit
impl UnwindSafe for EntityHit
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