Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color visualization for grounded character controller #705

Merged
merged 5 commits into from
Aug 2, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Jul 30, 2024

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 within detect_grounded_status_and_apply_friction
, it sometimes doesn't get any manifests, resulting in grounded = false.

examples3d/character_controller3.rs Outdated Show resolved Hide resolved
examples2d/character_controller2.rs Outdated Show resolved Hide resolved
src_testbed/testbed.rs Outdated Show resolved Hide resolved
src_testbed/testbed.rs Outdated Show resolved Hide resolved
src_testbed/testbed.rs Outdated Show resolved Hide resolved
@Vrixyz Vrixyz requested a review from sebcrozet July 30, 2024 15:57
Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks!

@Vrixyz Vrixyz merged commit 364b5b7 into dimforge:master Aug 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants