Struct ambient_api::physics::RaycastHit
source · pub struct RaycastHit {
pub position: Vec3,
pub distance: f32,
pub entity: EntityId,
}
Available on crate feature
server
only.Expand description
Where a raycast hit.
Fields§
§position: Vec3
The position of the hit.
distance: f32
The distance from the origin to the hit.
entity: EntityId
The entity that was hit.
Trait Implementations§
source§impl Clone for RaycastHit
impl Clone for RaycastHit
source§fn clone(&self) -> RaycastHit
fn clone(&self) -> RaycastHit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RaycastHit
impl Debug for RaycastHit
source§impl PartialEq for RaycastHit
impl PartialEq for RaycastHit
source§fn eq(&self, other: &RaycastHit) -> bool
fn eq(&self, other: &RaycastHit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RaycastHit
impl StructuralPartialEq for RaycastHit
Auto Trait Implementations§
impl RefUnwindSafe for RaycastHit
impl Send for RaycastHit
impl Sync for RaycastHit
impl Unpin for RaycastHit
impl UnwindSafe for RaycastHit
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.