Skip to main content

b3WorldCastOutput

Type Alias b3WorldCastOutput 

Source
pub type b3WorldCastOutput = b3CastOutput;
Expand description

Same type in single precision.

Aliased Type§

#[repr(C)]
pub struct b3WorldCastOutput { pub normal: b3Vec3, pub point: b3Vec3, pub fraction: f32, pub iterations: i32, pub triangleIndex: i32, pub childIndex: i32, pub materialIndex: i32, pub hit: bool, }

Fields§

§normal: b3Vec3

The surface normal at the hit point.

§point: b3Vec3

The surface hit point.

§fraction: f32

The fraction of the input translation at collision.

§iterations: i32

The number of iterations used.

§triangleIndex: i32

The index of the mesh or height field triangle hit.

§childIndex: i32

The index of the compound child shape.

§materialIndex: i32

The material index. May be -1 for null.

§hit: bool

Did the cast hit?