Color visualization for grounded character controller #705
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's currently difficult to assess if character controller ground detection works correctly, this adds a visual helper (the capsule turns red when not grounded) to detect it more quickly in the examples.
character_controller_color.mp4
ground detection analysis
when calling
colliders_with_aabb_intersecting_aabb
from withindetect_grounded_status_and_apply_friction
, it sometimes doesn't get any manifests, resulting in
grounded = false
.Honestly, a raycast down is probably less work than fiddling with nudge factor, numerical errors, shape implementations and whatnot 🤔
Or maybe just exposing or bumping up the predict ground distance around
rapier/src/control/character_controller.rs
Line 400 in 661c33f
I tested it against should allow grounding with no movement counter to the up direction #481, and still have not grounded frames.