Struct EntityRayHit
pub struct EntityRayHit {
pub entity: EntityRef,
pub location: [f64; 3],
pub distance: f64,
}Expand description
One entity a level ray passes through (LevelRef::ray_trace_entities): what
ProjectileUtil.getEntityHitResult tests for each candidate.
Fields§
§entity: EntityRefThe entity hit, a handle of the level the ray ran in.
location: [f64; 3]Where the ray enters the entity’s box, grown by the ray’s margin, in blocks.
distance: f64How far location is from the ray’s start, in blocks.
Trait Implementations§
§impl Clone for EntityRayHit
impl Clone for EntityRayHit
§fn clone(&self) -> EntityRayHit
fn clone(&self) -> EntityRayHit
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 EntityRayHit
§impl Debug for EntityRayHit
impl Debug for EntityRayHit
§impl PartialEq for EntityRayHit
impl PartialEq for EntityRayHit
impl StructuralPartialEq for EntityRayHit
Auto Trait Implementations§
impl Freeze for EntityRayHit
impl RefUnwindSafe for EntityRayHit
impl Send for EntityRayHit
impl Sync for EntityRayHit
impl Unpin for EntityRayHit
impl UnsafeUnpin for EntityRayHit
impl UnwindSafe for EntityRayHit
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