Add Grounded
marker for KinematicCharacterController
#504
Labels
A-Integration
very bevy specific
C-Enhancement
New feature or request
D-Medium
P-Medium
S-not-started
Work has not started
A pretty common question I see people ask is "how do I know if my character is grounded?"
This is currently done by querying for the
KinematicCharacterControllerOutput
component and checking theis_grounded
property.However, in my opinion, a more idiomatic approach would be a
Grounded
marker component. Paired with theWithout
filter, it would make some systems more ergonomic while also reducing the amount of iteration. For example, a simple jumping system could filter out entities that aren't grounded:For the boolean value, the idiomatic approach is to use
Has
:If desired, the name could also be more specific like
CharacterGrounded
or evenKinematicCharacterGrounded
, but I think justGrounded
is fine too.The text was updated successfully, but these errors were encountered: