dimforge / dimforge/bevy_rapier

`KinematicCharacterControllerOutput` doesn't get attached automatically

Open
#515 1 comment 0 reactions 0 assignees View on GitHub
A-Dynamics A-Integration C-Bug D-Medium P-Low S-not-started
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

Hi.

This morning I have been trying to get my player jumping mechanics done and my logic was relying on the `grounded` field from [`KinematicCharacterControllerOutput`](https://docs.rs/bevy_rapier2d/latest/bevy_rapier2d/control/struct.KinematicCharacterControllerOutput.html). I followed what the documentation says precisely how to add character controllers and so on but to my surprise nothing had worked as I was expecting. Debugging led me to find that my player has no `KinematicCharacterControllerOutput` attached to it even tho he has [`KinematicCharacterController`](https://docs.rs/bevy_rapier2d/latest/bevy_rapier2d/control/struct.KinematicCharacterController.html) which should attach the output component automatically as it says [here](https://rapier.rs/docs/user_guides/bevy_plugin/character_controller). So I don't know if I messed things up somewhere or it's just some intern weird bug.
> The applied character motion, and the information of whether the character is touching the ground at its final position, can be read with the `KinematicCharacterControllerOutput` component (inserted automatically to the same entity as the `KinematicCharacterController` component).

Here's a [demo](https://github.com/theunrealtarik/kinematic-controller-demo) that demonstrates the issue.
![image](https://github.com/dimforge/bevy_rapier/assets/58333332/7b18d28b-39b0-4e30-8547-d6983f3635d4)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.