pub struct GroundProbe {
pub origin: [f32; 3],
pub max_dist: f32,
pub hit: Option<([f32; 3], [f32; 3])>,
}Expand description
One downward ground probe: a ray and, once physics has answered it, the hit it found.
Fields§
§origin: [f32; 3]Ray origin in world space.
max_dist: f32Maximum hit distance along -Y from the origin.
hit: Option<([f32; 3], [f32; 3])>The surface point and normal the ray found, or None (unanswered,
or no ground within range).
Trait Implementations§
Source§impl Clone for GroundProbe
impl Clone for GroundProbe
Source§fn clone(&self) -> GroundProbe
fn clone(&self) -> GroundProbe
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 GroundProbe
Source§impl Debug for GroundProbe
impl Debug for GroundProbe
Source§impl Default for GroundProbe
impl Default for GroundProbe
Source§fn default() -> GroundProbe
fn default() -> GroundProbe
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GroundProbe
impl RefUnwindSafe for GroundProbe
impl Send for GroundProbe
impl Sync for GroundProbe
impl Unpin for GroundProbe
impl UnsafeUnpin for GroundProbe
impl UnwindSafe for GroundProbe
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