pub struct WorldCastOutput {
pub normal: Vec3,
pub point: Pos,
pub fraction: f32,
pub iterations: i32,
pub triangle_index: i32,
pub child_index: i32,
pub material_index: i32,
pub hit: bool,
}Expand description
World-space cast output from a single-shape ray cast. (b3WorldCastOutput)
In single precision this matches crate::distance::CastOutput field-wise
except point is [Pos] (an alias of Vec3). With double-precision,
point stays a world [Pos].
Fields§
§normal: Vec3The surface normal at the hit point.
point: PosThe surface hit point in world space.
fraction: f32The fraction of the input translation at collision.
iterations: i32The number of iterations used.
triangle_index: i32The index of the mesh or height field triangle hit.
child_index: i32The index of the compound child shape.
material_index: i32The material index. May be -1 for null.
hit: boolDid the cast hit?
Trait Implementations§
Source§impl Clone for WorldCastOutput
impl Clone for WorldCastOutput
Source§fn clone(&self) -> WorldCastOutput
fn clone(&self) -> WorldCastOutput
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 WorldCastOutput
Source§impl Debug for WorldCastOutput
impl Debug for WorldCastOutput
Source§impl Default for WorldCastOutput
impl Default for WorldCastOutput
Source§impl PartialEq for WorldCastOutput
impl PartialEq for WorldCastOutput
impl StructuralPartialEq for WorldCastOutput
Auto Trait Implementations§
impl Freeze for WorldCastOutput
impl RefUnwindSafe for WorldCastOutput
impl Send for WorldCastOutput
impl Sync for WorldCastOutput
impl Unpin for WorldCastOutput
impl UnsafeUnpin for WorldCastOutput
impl UnwindSafe for WorldCastOutput
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