ShapeCastHit has no details on ShapeCastStatus::Converged #511
Labels
A-Integration
very bevy specific
C-Bug
Something isn't working
D-Medium
P-High
arbitrary important item
S-not-started
Work has not started
Problem
I have panics in a game, because
RapierContext::cast_shape
returns an objectAccording to the docs of
ShapeCastHit.details
,details
should beNone
ifPenetratingOrWithinTargetDist
and!compute_impact_geometry_on_penetration
, so I expecteddetails
to beSome
for an object with statusConverged
.Solution attempt
The condition in
bevy_rapier/src/geometry/mod.rs
Lines 110 to 111 in 3455d5f
seems to be the issue.
details_always_computed
was givencompute_impact_geometry_on_penetration
,so it is not possible to get the details at all if
PenetratingOrWithinTargetDist
,and
compute_impact_geometry_on_penetration
does only influence the behavior ifstatus != PenetratingOrWithinTargetDist
.To have the documented behavior, I think this condition should be
The text was updated successfully, but these errors were encountered: