#[repr(C)]pub struct b3CastOutput {
pub normal: b3Vec3,
pub point: b3Vec3,
pub fraction: f32,
pub iterations: c_int,
pub triangleIndex: c_int,
pub childIndex: c_int,
pub materialIndex: c_int,
pub hit: bool,
}Expand description
Low level ray cast or shape-cast output data.
Fields§
§normal: b3Vec3The surface normal at the hit point.
point: b3Vec3The surface hit point.
fraction: f32The fraction of the input translation at collision.
iterations: c_intThe number of iterations used.
triangleIndex: c_intThe index of the mesh or height field triangle hit.
childIndex: c_intThe index of the compound child shape.
materialIndex: c_intThe material index. May be -1 for null.
hit: boolDid the cast hit?
Trait Implementations§
Source§impl Clone for b3CastOutput
impl Clone for b3CastOutput
Source§fn clone(&self) -> b3CastOutput
fn clone(&self) -> b3CastOutput
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 b3CastOutput
Auto Trait Implementations§
impl Freeze for b3CastOutput
impl RefUnwindSafe for b3CastOutput
impl Send for b3CastOutput
impl Sync for b3CastOutput
impl Unpin for b3CastOutput
impl UnsafeUnpin for b3CastOutput
impl UnwindSafe for b3CastOutput
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