pub struct CastOutput {
pub normal: Vec3,
pub point: Vec3,
pub fraction: f32,
pub iterations: i32,
pub triangle_index: i32,
pub child_index: i32,
pub material_index: i32,
pub hit: bool,
}Expand description
Low level ray cast or shape-cast output data. (b3CastOutput)
Fields§
§normal: Vec3The surface normal at the hit point.
point: Vec3The surface hit point.
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 CastOutput
impl Clone for CastOutput
Source§fn clone(&self) -> CastOutput
fn clone(&self) -> CastOutput
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 CastOutput
Source§impl Debug for CastOutput
impl Debug for CastOutput
Source§impl Default for CastOutput
impl Default for CastOutput
Source§impl PartialEq for CastOutput
impl PartialEq for CastOutput
impl StructuralPartialEq for CastOutput
Auto Trait Implementations§
impl Freeze for CastOutput
impl RefUnwindSafe for CastOutput
impl Send for CastOutput
impl Sync for CastOutput
impl Unpin for CastOutput
impl UnsafeUnpin for CastOutput
impl UnwindSafe for CastOutput
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