pub struct ArcHit {
pub time: f64,
pub point: DVec3,
pub normal: DVec3,
pub started_inside: bool,
pub part: usize,
}Expand description
Where
PhysicsWorld::sweep_capsule_arc
found a capsule first touching a collider.
Fields§
§time: f64When the capsule touches, in [0, duration] of the path, and never
later than the first touch. The search stops once its next safe step
is no longer than ARC_TIME_TOLERANCE: a flat face is met to
rounding, and an edge or a round surface to within the distance the
capsule closes in that time. Zero when it started touching.
point: DVec3The point of the collider nearest the capsule at time.
normal: DVec3Unit normal pointing away from the surface met, toward the capsule.
started_inside: boolWhether this is the contact at the original path’s starting overlap.
Its time is zero whichever way the capsule moves, as a
straight sweep’s ShapeHit::started_inside is. A
later re-entry selected after rejecting that overlap is not flagged.
part: usizeThe part of the collider met, as
ShapeHit::part means it.